QuotaInfo.fromJson constructor
QuotaInfo.fromJson(
- Map json_
Implementation
QuotaInfo.fromJson(core.Map json_)
: this(
limitExceeded: json_.containsKey('limitExceeded')
? (json_['limitExceeded'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
quotaConsumed: json_.containsKey('quotaConsumed')
? (json_['quotaConsumed'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.int,
),
)
: null,
quotaMetrics: json_.containsKey('quotaMetrics')
? (json_['quotaMetrics'] as core.List)
.map((value) => MetricValueSet.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);