AccountCardPayments.fromJson constructor

AccountCardPayments.fromJson(
  1. Object? json
)

Implementation

factory AccountCardPayments.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountCardPayments(
    declineOn: map['decline_on'] == null
        ? null
        : AccountDeclineOn.fromJson(map['decline_on']),
    statementDescriptorPrefix: map['statement_descriptor_prefix'] == null
        ? null
        : (map['statement_descriptor_prefix'] as String),
    statementDescriptorPrefixKana:
        map['statement_descriptor_prefix_kana'] == null
            ? null
            : (map['statement_descriptor_prefix_kana'] as String),
    statementDescriptorPrefixKanji:
        map['statement_descriptor_prefix_kanji'] == null
            ? null
            : (map['statement_descriptor_prefix_kanji'] as String),
  );
}