toJson method
Mapping UserAttributes to json.
Implementation
Map<String, dynamic> toJson() => {
'firstName': firstName,
'middleName': middleName,
'lastName': lastName,
'gender': gender?.name,
'birthday': birthday,
'tags': tags,
'customAttributes': customAttributes,
}..removeWhere((dynamic key, dynamic value) => value == null);