toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'email'] = this.email;
if (this.profilePhoto != null) {
json[r'profilePhoto'] = this.profilePhoto;
} else {
json[r'profilePhoto'] = null;
}
return json;
}