toJson method
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
if (name != null) 'name': name,
if (email != null) 'email': email,
if (custom != null) 'custom': custom,
if (externalId != null) 'externalId': externalId,
if (profileUrl != null) 'profileUrl': profileUrl,
if (status != null) 'status': status,
if (type != null) 'type': type,
};