toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  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.phone != null) {
    json[r'phone'] = this.phone;
  } else {
    json[r'phone'] = null;
  }
  if (this.company != null) {
    json[r'company'] = this.company;
  } else {
    json[r'company'] = null;
  }
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.notes != null) {
    json[r'notes'] = this.notes;
  } else {
    json[r'notes'] = null;
  }
    json[r'metadata'] = this.metadata;
  return json;
}