IssuingAuthorizationTreasury.fromJson constructor

IssuingAuthorizationTreasury.fromJson(
  1. Object? json
)

Implementation

factory IssuingAuthorizationTreasury.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingAuthorizationTreasury(
    receivedCredits: (map['received_credits'] as List<Object?>)
        .map((el) => (el as String))
        .toList(),
    receivedDebits: (map['received_debits'] as List<Object?>)
        .map((el) => (el as String))
        .toList(),
    transaction:
        map['transaction'] == null ? null : (map['transaction'] as String),
  );
}