Zone.fromJson constructor

Zone.fromJson(
  1. Map json_
)

Implementation

Zone.fromJson(core.Map json_)
    : this(
        availableCpuPlatforms: json_.containsKey('availableCpuPlatforms')
            ? (json_['availableCpuPlatforms'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        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,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : 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,
      );