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.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
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.phoneNumber != null) {
json[r'phone_number'] = this.phoneNumber;
} else {
json[r'phone_number'] = null;
}
if (this.gender != null) {
json[r'gender'] = this.gender;
} else {
json[r'gender'] = null;
}
if (this.skypeAddress != null) {
json[r'skype_address'] = this.skypeAddress;
} else {
json[r'skype_address'] = null;
}
if (this.dateOfBirth != null) {
json[r'date_of_birth'] = this.dateOfBirth!.toUtc().toIso8601String();
} else {
json[r'date_of_birth'] = null;
}
return json;
}