QuotaOperation.fromJson constructor

QuotaOperation.fromJson(
  1. Map json_
)

Implementation

QuotaOperation.fromJson(core.Map json_)
    : this(
        consumerId: json_.containsKey('consumerId')
            ? json_['consumerId'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        methodName: json_.containsKey('methodName')
            ? json_['methodName'] as core.String
            : 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,
        quotaMode: json_.containsKey('quotaMode')
            ? json_['quotaMode'] as core.String
            : null,
      );