AllocateQuotaResponse.fromJson constructor

AllocateQuotaResponse.fromJson(
  1. Map json_
)

Implementation

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