BillingMeterUpdateOptions.fromJson constructor

BillingMeterUpdateOptions.fromJson(
  1. Object? json
)

Implementation

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