StoragePool.fromJson constructor

StoragePool.fromJson(
  1. Map json_
)

Implementation

StoragePool.fromJson(core.Map json_)
    : this(
        capacityProvisioningType:
            json_.containsKey('capacityProvisioningType')
                ? json_['capacityProvisioningType'] as core.String
                : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : 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,
        labelFingerprint: json_.containsKey('labelFingerprint')
            ? json_['labelFingerprint'] 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        performanceProvisioningType:
            json_.containsKey('performanceProvisioningType')
                ? json_['performanceProvisioningType'] as core.String
                : null,
        poolProvisionedCapacityGb:
            json_.containsKey('poolProvisionedCapacityGb')
                ? json_['poolProvisionedCapacityGb'] as core.String
                : null,
        poolProvisionedIops: json_.containsKey('poolProvisionedIops')
            ? json_['poolProvisionedIops'] as core.String
            : null,
        poolProvisionedThroughput:
            json_.containsKey('poolProvisionedThroughput')
                ? json_['poolProvisionedThroughput'] as core.String
                : null,
        resourceStatus: json_.containsKey('resourceStatus')
            ? StoragePoolResourceStatus.fromJson(json_['resourceStatus']
                as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        selfLinkWithId: json_.containsKey('selfLinkWithId')
            ? json_['selfLinkWithId'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        status: json_.containsKey('status')
            ? StoragePoolResourceStatus.fromJson(
                json_['status'] as core.Map<core.String, core.dynamic>)
            : null,
        storagePoolType: json_.containsKey('storagePoolType')
            ? json_['storagePoolType'] as core.String
            : null,
        zone: json_.containsKey('zone') ? json_['zone'] as core.String : null,
      );