Region.fromJson constructor

Region.fromJson(
  1. Map json_
)

Implementation

Region.fromJson(core.Map json_)
    : this(
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        deprecated: json_.containsKey('deprecated')
            ? DeprecationStatus.fromJson(
                json_['deprecated'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        quotas: json_.containsKey('quotas')
            ? (json_['quotas'] as core.List)
                .map((value) => Quota.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        supportsPzs: json_.containsKey('supportsPzs')
            ? json_['supportsPzs'] as core.bool
            : null,
        zones: json_.containsKey('zones')
            ? (json_['zones'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );