toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.firstName != null) {
    json[r'firstName'] = this.firstName;
  } else {
    json[r'firstName'] = null;
  }
  if (this.lastName != null) {
    json[r'lastName'] = this.lastName;
  } else {
    json[r'lastName'] = null;
  }
  if (this.dateOfBirth != null) {
    json[r'dateOfBirth'] = _dateFormatter.format(this.dateOfBirth!.toUtc());
  } else {
    json[r'dateOfBirth'] = null;
  }
  if (this.annualIncome != null) {
    json[r'annualIncome'] = this.annualIncome;
  } else {
    json[r'annualIncome'] = null;
  }
  if (this.streetAddress1 != null) {
    json[r'streetAddress1'] = this.streetAddress1;
  } else {
    json[r'streetAddress1'] = null;
  }
  if (this.streetAddress2 != null) {
    json[r'streetAddress2'] = this.streetAddress2;
  } else {
    json[r'streetAddress2'] = null;
  }
  if (this.city != null) {
    json[r'city'] = this.city;
  } else {
    json[r'city'] = null;
  }
  if (this.state != null) {
    json[r'state'] = this.state;
  } else {
    json[r'state'] = null;
  }
  if (this.zipcode != null) {
    json[r'zipcode'] = this.zipcode;
  } else {
    json[r'zipcode'] = null;
  }
  return json;
}