LegalEntityJapanAddress.fromJson constructor

LegalEntityJapanAddress.fromJson(
  1. Object? json
)

Implementation

factory LegalEntityJapanAddress.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return LegalEntityJapanAddress(
    city: map['city'] == null ? null : (map['city'] as String),
    country: map['country'] == null ? null : (map['country'] as String),
    line1: map['line1'] == null ? null : (map['line1'] as String),
    line2: map['line2'] == null ? null : (map['line2'] as String),
    postalCode:
        map['postal_code'] == null ? null : (map['postal_code'] as String),
    state: map['state'] == null ? null : (map['state'] as String),
    town: map['town'] == null ? null : (map['town'] as String),
  );
}