toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
    json[r'firstName'] = this.firstName;
    json[r'lastName'] = this.lastName;
    json[r'email'] = this.email;
    json[r'phone'] = this.phone;
  return json;
}