toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'user_id'] = this.userId;
if (this.firstName != null) {
json[r'first_name'] = this.firstName;
} else {
json[r'first_name'] = null;
}
if (this.lastName != null) {
json[r'last_name'] = this.lastName;
} else {
json[r'last_name'] = null;
}
if (this.profileImageUrl != null) {
json[r'profile_image_url'] = this.profileImageUrl;
} else {
json[r'profile_image_url'] = null;
}
json[r'image_url'] = this.imageUrl;
json[r'has_image'] = this.hasImage;
if (this.identifier != null) {
json[r'identifier'] = this.identifier;
} else {
json[r'identifier'] = null;
}
return json;
}