BillingMeterResourceBillingMeterStatusTransitions.fromJson constructor

BillingMeterResourceBillingMeterStatusTransitions.fromJson(
  1. Object? json
)

Implementation

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