TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions.fromJson constructor
TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions.fromJson(
- Object? json
Implementation
factory TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions(
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()),
);
}