PricesRecurring.fromJson constructor

PricesRecurring.fromJson(
  1. Object? json
)

Implementation

factory PricesRecurring.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PricesRecurring(
    interval: map['interval'] == null
        ? null
        : InvoiceitemPlanInterval.fromJson(map['interval']),
    meter: map['meter'] == null ? null : (map['meter'] as String),
    usageType: map['usage_type'] == null
        ? null
        : InvoiceitemPlanUsageType.fromJson(map['usage_type']),
  );
}