toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final map = <String, dynamic>{};
  map['title'] = title;
  map['firstName'] = firstName;
  map['middleName'] = middleName;
  map['lastName'] = lastName;
  map['phone'] = phone;
  map['email'] = email;
  return map;
}