TreasuryReceivedDebitsResourceStatusTransitions.fromJson constructor

TreasuryReceivedDebitsResourceStatusTransitions.fromJson(
  1. Object? json
)

Implementation

factory TreasuryReceivedDebitsResourceStatusTransitions.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TreasuryReceivedDebitsResourceStatusTransitions(
      completedAt: map['completed_at'] == null
          ? null
          : DateTime.fromMillisecondsSinceEpoch(
              (map['completed_at'] as int).toInt()));
}