BillingMeterEventAdjustmentCreateOptions.fromJson constructor

BillingMeterEventAdjustmentCreateOptions.fromJson(
  1. Object? json
)

Implementation

factory BillingMeterEventAdjustmentCreateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return BillingMeterEventAdjustmentCreateOptions(
    cancel: MeterEventAdjustmentCancel.fromJson(map['cancel']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
  );
}