LegalEntityCompany.fromJson constructor
LegalEntityCompany.fromJson(
- Object? json
Implementation
factory LegalEntityCompany.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return LegalEntityCompany(
address: map['address'] == null ? null : Address.fromJson(map['address']),
addressKana: map['address_kana'] == null
? null
: LegalEntityCompanyAddressKana.fromJson(map['address_kana']),
addressKanji: map['address_kanji'] == null
? null
: LegalEntityCompanyAddressKana.fromJson(map['address_kanji']),
directorsProvided: map['directors_provided'] == null
? null
: (map['directors_provided'] as bool),
executivesProvided: map['executives_provided'] == null
? null
: (map['executives_provided'] as bool),
exportLicenseId: map['export_license_id'] == null
? null
: (map['export_license_id'] as String),
exportPurposeCode: map['export_purpose_code'] == null
? null
: (map['export_purpose_code'] as String),
name: map['name'] == null ? null : (map['name'] as String),
nameKana: map['name_kana'] == null ? null : (map['name_kana'] as String),
nameKanji:
map['name_kanji'] == null ? null : (map['name_kanji'] as String),
ownersProvided: map['owners_provided'] == null
? null
: (map['owners_provided'] as bool),
ownershipDeclaration: map['ownership_declaration'] == null
? null
: IssuingCardholderUserTermsAcceptance.fromJson(
map['ownership_declaration']),
phone: map['phone'] == null ? null : (map['phone'] as String),
structure: map['structure'] == null
? null
: LegalEntityCompanyStructure.fromJson(map['structure']),
taxIdProvided: map['tax_id_provided'] == null
? null
: (map['tax_id_provided'] as bool),
taxIdRegistrar: map['tax_id_registrar'] == null
? null
: (map['tax_id_registrar'] as String),
vatIdProvided: map['vat_id_provided'] == null
? null
: (map['vat_id_provided'] as bool),
verification: map['verification'] == null
? null
: LegalEntityCompanyVerification.fromJson(map['verification']),
);
}