Instance.fromJson constructor

Instance.fromJson(
  1. Map json_
)

Implementation

Instance.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        fileShares: json_.containsKey('fileShares')
            ? (json_['fileShares'] as core.List)
                .map((value) => FileShareConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] 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,
        networks: json_.containsKey('networks')
            ? (json_['networks'] as core.List)
                .map((value) => NetworkConfig.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        replication: json_.containsKey('replication')
            ? Replication.fromJson(
                json_['replication'] as core.Map<core.String, core.dynamic>)
            : null,
        satisfiesPzi: json_.containsKey('satisfiesPzi')
            ? json_['satisfiesPzi'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        statusMessage: json_.containsKey('statusMessage')
            ? json_['statusMessage'] as core.String
            : null,
        suspensionReasons: json_.containsKey('suspensionReasons')
            ? (json_['suspensionReasons'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        tier: json_.containsKey('tier') ? json_['tier'] as core.String : null,
      );