AccountPayments.fromJson constructor

AccountPayments.fromJson(
  1. Object? json
)

Implementation

factory AccountPayments.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountPayments(
    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),
  );
}