$QuotaLimit.fromJson constructor

$QuotaLimit.fromJson(
  1. Map json_
)

Implementation

$QuotaLimit.fromJson(core.Map json_)
    : this(
        defaultLimit: json_.containsKey('defaultLimit')
            ? json_['defaultLimit'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        freeTier: json_.containsKey('freeTier')
            ? json_['freeTier'] as core.String
            : null,
        maxLimit: json_.containsKey('maxLimit')
            ? json_['maxLimit'] as core.String
            : null,
        metric: json_.containsKey('metric')
            ? json_['metric'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        unit: json_.containsKey('unit') ? json_['unit'] as core.String : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );