AccountCardPaymentsSettings.fromJson constructor
AccountCardPaymentsSettings.fromJson(
- Object? json
Implementation
factory AccountCardPaymentsSettings.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountCardPaymentsSettings(
declineOn: map['decline_on'] == null
? null
: AccountDeclineChargeOn.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),
);
}