TreasuryReceivedCreditsResourceStatusTransitions.fromJson constructor

TreasuryReceivedCreditsResourceStatusTransitions.fromJson(
  1. Object? json
)

Implementation

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