SourceTypeMultibanco.fromJson constructor

SourceTypeMultibanco.fromJson(
  1. Object? json
)

Implementation

factory SourceTypeMultibanco.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTypeMultibanco(
    entity: map['entity'] == null ? null : (map['entity'] as String),
    reference: map['reference'] == null ? null : (map['reference'] as String),
    refundAccountHolderAddressCity:
        map['refund_account_holder_address_city'] == null
            ? null
            : (map['refund_account_holder_address_city'] as String),
    refundAccountHolderAddressCountry:
        map['refund_account_holder_address_country'] == null
            ? null
            : (map['refund_account_holder_address_country'] as String),
    refundAccountHolderAddressLine1:
        map['refund_account_holder_address_line1'] == null
            ? null
            : (map['refund_account_holder_address_line1'] as String),
    refundAccountHolderAddressLine2:
        map['refund_account_holder_address_line2'] == null
            ? null
            : (map['refund_account_holder_address_line2'] as String),
    refundAccountHolderAddressPostalCode:
        map['refund_account_holder_address_postal_code'] == null
            ? null
            : (map['refund_account_holder_address_postal_code'] as String),
    refundAccountHolderAddressState:
        map['refund_account_holder_address_state'] == null
            ? null
            : (map['refund_account_holder_address_state'] as String),
    refundAccountHolderName: map['refund_account_holder_name'] == null
        ? null
        : (map['refund_account_holder_name'] as String),
    refundIban:
        map['refund_iban'] == null ? null : (map['refund_iban'] as String),
  );
}