fields method

Map<String, String> fields ()

Implementation

Map<String, String> fields() {
  final fields = <String, String>{};
  if (lastName != null) {
    fields['last_name'] = lastName;
  }
  if (firstName != null) {
    fields['first_name'] = firstName;
  }
  if (additionalName != null) {
    fields['additional_name'] = additionalName;
  }
  if (addressCountryCode != null) {
    fields['address_country_code'] = addressCountryCode;
  }
  if (stateOrProvince != null) {
    fields['state_or_province'] = stateOrProvince;
  }
  if (city != null) {
    fields['city'] = city;
  }
  if (postalCode != null) {
    fields['postal_code'] = postalCode;
  }
  if (address != null) {
    fields['address'] = address;
  }
  if (mobileNumber != null) {
    fields['mobile_number'] = mobileNumber;
  }
  if (emailAddress != null) {
    fields['email_address'] = emailAddress;
  }
  if (birthDate != null) {
    fields['birth_date'] = birthDate.toIso8601String();
  }
  if (birthPlace != null) {
    fields['birth_place'] = birthPlace;
  }
  if (birthCountryCode != null) {
    fields['birth_country_code'] = birthCountryCode;
  }
  if (bankAccountNumber != null) {
    fields['bank_account_number'] = bankAccountNumber;
  }
  if (bankNumber != null) {
    fields['bank_number'] = bankNumber;
  }
  if (bankPhoneNumber != null) {
    fields['bank_phone_number'] = bankPhoneNumber;
  }
  if (bankBranchNumber != null) {
    fields['bank_branch_number'] = bankBranchNumber;
  }
  if (taxId != null) {
    fields['tax_id'] = taxId;
  }
  if (taxIdName != null) {
    fields['tax_id_name'] = taxIdName;
  }
  if (occupation != null) {
    fields['occupation'] = occupation.toString();
  }
  if (employerName != null) {
    fields['employer_name'] = employerName;
  }
  if (employerAddress != null) {
    fields['employer_address'] = employerAddress;
  }
  if (languageCode != null) {
    fields['language_code'] = languageCode;
  }
  if (idType != null) {
    fields['id_type'] = idType;
  }
  if (idCountryCode != null) {
    fields['id_country_code'] = idCountryCode;
  }
  if (idIssueDate != null) {
    fields['id_issue_date'] = idIssueDate.toIso8601String();
  }
  if (idExpirationDate != null) {
    fields['id_expiration_date'] = idExpirationDate.toIso8601String();
  }
  if (idNumber != null) {
    fields['id_number'] = idNumber;
  }
  if (ipAddress != null) {
    fields['ip_address'] = ipAddress;
  }
  if (sex != null) {
    fields['sex'] = sex;
  }
  return fields;
}