AccountPaymentsSettings.fromJson constructor

AccountPaymentsSettings.fromJson(
  1. Object? json
)

Implementation

factory AccountPaymentsSettings.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountPaymentsSettings(
    statementDescriptor: map['statement_descriptor'] == null
        ? null
        : (map['statement_descriptor'] as String),
    statementDescriptorKana: map['statement_descriptor_kana'] == null
        ? null
        : (map['statement_descriptor_kana'] as String),
    statementDescriptorKanji: map['statement_descriptor_kanji'] == null
        ? null
        : (map['statement_descriptor_kanji'] 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),
  );
}