toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'telephone'] = this.telephone;
if (this.postcode != null) {
json[r'postcode'] = this.postcode;
} else {
json[r'postcode'] = null;
}
json[r'email'] = this.email;
if (this.tutoringType != null) {
json[r'tutoringType'] = this.tutoringType;
} else {
json[r'tutoringType'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.subjectlevel != null) {
json[r'subjectlevel'] = this.subjectlevel;
} else {
json[r'subjectlevel'] = null;
}
json[r'leadType'] = this.leadType;
return json;
}