toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'externalUserId': externalUserId,
      'firstName': firstName,
      'lastName': lastName,
      'middleName': middleName,
      'gender': gender != null ? describeEnum(gender!) : null,
      'birthday': birthday,
      'type': type,
      'phones': phones,
      'emails': emails,
      'tags': tags,
      'customAttributes': customAttributes
    }..removeWhere((dynamic key, dynamic value) => value == null);