TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions.fromJson constructor
TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions.fromJson(
- Object? json
Implementation
factory TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions(
postedAt: map['posted_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['posted_at'] as int).toInt()),
voidAt: map['void_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['void_at'] as int).toInt()),
);
}