toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['isdNumber'] = this.isdNumber;
  data['number'] = this.number;
  data['customerId'] = this.customerId;
  data['first_name'] = this.firstName;
  data['middle_name'] = this.middleName;
  data['last_name'] = this.lastName;
  data['email'] = this.email;
  // if (this.phone != null) {
  //   data['phone'] = this.phone.toJson();
  // }
  return data;
}