InvoicesResourceStatusTransitions.fromJson constructor
InvoicesResourceStatusTransitions.fromJson(
- Object? json
Implementation
factory InvoicesResourceStatusTransitions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return InvoicesResourceStatusTransitions(
finalizedAt: map['finalized_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['finalized_at'] as int).toInt()),
markedUncollectibleAt: map['marked_uncollectible_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['marked_uncollectible_at'] as int).toInt()),
paidAt: map['paid_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['paid_at'] as int).toInt()),
voidedAt: map['voided_at'] == null
? null
: DateTime.fromMillisecondsSinceEpoch(
(map['voided_at'] as int).toInt()),
);
}