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