TreasuryDebitReversalCreateOptions.fromJson constructor
TreasuryDebitReversalCreateOptions.fromJson(
- Object? json
Implementation
factory TreasuryDebitReversalCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasuryDebitReversalCreateOptions(
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
metadata: map['metadata'] == null
? null
: (map['metadata'] as Map).cast<String, Object?>().map((
key,
value,
) =>
MapEntry(
key,
(value as String),
)),
receivedDebit: (map['received_debit'] as String),
);
}