# toString method

1. @override

String toString()
override

Converts to JID instance into its string representation of localpart@domainpart/resource.

## Implementation

    @override
    String toString() {
      var result = '';

      if (local.isNotEmpty) {
        result += '$local@$domain';
      } else {
        result += domain;
      }
      if (isFull()) {
        result += '/$resource';
      }

      return result;
    }