TreasuryOutboundTransfersResourceStatusTransitions.fromJson constructor
TreasuryOutboundTransfersResourceStatusTransitions.fromJson(
- Object? json
Implementation
factory TreasuryOutboundTransfersResourceStatusTransitions.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasuryOutboundTransfersResourceStatusTransitions(
canceledAt: map['canceled_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['canceled_at'] as int).toInt()),
failedAt: map['failed_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['failed_at'] as int).toInt()),
postedAt: map['posted_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['posted_at'] as int).toInt()),
returnedAt: map['returned_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['returned_at'] as int).toInt()),
);
}