AllocateQuotaResponse.fromJson constructor
AllocateQuotaResponse.fromJson(
- Map json_
Implementation
AllocateQuotaResponse.fromJson(core.Map json_)
: this(
allocateErrors:
(json_['allocateErrors'] as core.List?)
?.map(
(value) => QuotaError.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
allocateInfo:
json_.containsKey('allocateInfo')
? AllocateInfo.fromJson(
json_['allocateInfo'] as core.Map<core.String, core.dynamic>,
)
: null,
operationId: json_['operationId'] as core.String?,
quotaMetrics:
(json_['quotaMetrics'] as core.List?)
?.map(
(value) => MetricValueSet.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
serviceConfigId: json_['serviceConfigId'] as core.String?,
);