TreasuryReceivedCreditReversalDetails.fromJson constructor
TreasuryReceivedCreditReversalDetails.fromJson(
- Object? json
Implementation
factory TreasuryReceivedCreditReversalDetails.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasuryReceivedCreditReversalDetails(
deadline: map['deadline'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['deadline'] as int).toInt()),
restrictedReason: map['restricted_reason'] == null
? null
: TreasuryReceivedCreditReversalDetailsRestrictedReason.fromJson(
map['restricted_reason']),
);
}