toJsonString method

String toJsonString()

Implementation

String toJsonString() {
  final metadata = otherMetadata ?? {};
  return json.encode(
    {
      'name': name,
      'email': email,
      'external_id': externalId,
      'metadata': metadata,
    },
  );
}