StoragePoolDisk.fromJson constructor

StoragePoolDisk.fromJson(
  1. Map json_
)

Implementation

StoragePoolDisk.fromJson(core.Map json_)
    : this(
        attachedInstances: json_.containsKey('attachedInstances')
            ? (json_['attachedInstances'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        creationTimestamp: json_.containsKey('creationTimestamp')
            ? json_['creationTimestamp'] as core.String
            : null,
        disk: json_.containsKey('disk') ? json_['disk'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        provisionedIops: json_.containsKey('provisionedIops')
            ? json_['provisionedIops'] as core.String
            : null,
        provisionedThroughput: json_.containsKey('provisionedThroughput')
            ? json_['provisionedThroughput'] as core.String
            : null,
        resourcePolicies: json_.containsKey('resourcePolicies')
            ? (json_['resourcePolicies'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sizeGb: json_.containsKey('sizeGb')
            ? json_['sizeGb'] as core.String
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        usedBytes: json_.containsKey('usedBytes')
            ? json_['usedBytes'] as core.String
            : null,
      );