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