PropertyQuota.fromJson constructor

PropertyQuota.fromJson(
  1. Map json_
)

Implementation

PropertyQuota.fromJson(core.Map json_)
    : this(
        concurrentRequests: json_.containsKey('concurrentRequests')
            ? QuotaStatus.fromJson(json_['concurrentRequests']
                as core.Map<core.String, core.dynamic>)
            : null,
        potentiallyThresholdedRequestsPerHour:
            json_.containsKey('potentiallyThresholdedRequestsPerHour')
                ? QuotaStatus.fromJson(
                    json_['potentiallyThresholdedRequestsPerHour']
                        as core.Map<core.String, core.dynamic>)
                : null,
        serverErrorsPerProjectPerHour:
            json_.containsKey('serverErrorsPerProjectPerHour')
                ? QuotaStatus.fromJson(json_['serverErrorsPerProjectPerHour']
                    as core.Map<core.String, core.dynamic>)
                : null,
        tokensPerDay: json_.containsKey('tokensPerDay')
            ? QuotaStatus.fromJson(
                json_['tokensPerDay'] as core.Map<core.String, core.dynamic>)
            : null,
        tokensPerHour: json_.containsKey('tokensPerHour')
            ? QuotaStatus.fromJson(
                json_['tokensPerHour'] as core.Map<core.String, core.dynamic>)
            : null,
        tokensPerProjectPerHour: json_.containsKey('tokensPerProjectPerHour')
            ? QuotaStatus.fromJson(json_['tokensPerProjectPerHour']
                as core.Map<core.String, core.dynamic>)
            : null,
      );