toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.tutorId != null) {
json[r'tutor_id'] = this.tutorId;
} else {
json[r'tutor_id'] = null;
}
if (this.rating != null) {
json[r'rating'] = this.rating;
} else {
json[r'rating'] = null;
}
if (this.comment != null) {
json[r'comment'] = this.comment;
} else {
json[r'comment'] = 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.email != null) {
json[r'email'] = this.email;
} else {
json[r'email'] = null;
}
if (this.relation != null) {
json[r'relation'] = this.relation;
} else {
json[r'relation'] = null;
}
if (this.photo != null) {
json[r'photo'] = this.photo;
} else {
json[r'photo'] = null;
}
if (this.created != null) {
json[r'created'] = this.created!.toUtc().toIso8601String();
} else {
json[r'created'] = null;
}
return json;
}