WorkstationConfig.fromJson constructor

WorkstationConfig.fromJson(
  1. Map json_
)

Implementation

WorkstationConfig.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => Status.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        container: json_.containsKey('container')
            ? Container.fromJson(
                json_['container'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        degraded: json_.containsKey('degraded')
            ? json_['degraded'] as core.bool
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        disableTcpConnections: json_.containsKey('disableTcpConnections')
            ? json_['disableTcpConnections'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        enableAuditAgent: json_.containsKey('enableAuditAgent')
            ? json_['enableAuditAgent'] as core.bool
            : null,
        encryptionKey: json_.containsKey('encryptionKey')
            ? CustomerEncryptionKey.fromJson(
                json_['encryptionKey'] as core.Map<core.String, core.dynamic>)
            : null,
        ephemeralDirectories: json_.containsKey('ephemeralDirectories')
            ? (json_['ephemeralDirectories'] as core.List)
                .map((value) => EphemeralDirectory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        host: json_.containsKey('host')
            ? Host.fromJson(
                json_['host'] as core.Map<core.String, core.dynamic>)
            : null,
        idleTimeout: json_.containsKey('idleTimeout')
            ? json_['idleTimeout'] 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,
        persistentDirectories: json_.containsKey('persistentDirectories')
            ? (json_['persistentDirectories'] as core.List)
                .map((value) => PersistentDirectory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        readinessChecks: json_.containsKey('readinessChecks')
            ? (json_['readinessChecks'] as core.List)
                .map((value) => ReadinessCheck.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        replicaZones: json_.containsKey('replicaZones')
            ? (json_['replicaZones'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        runningTimeout: json_.containsKey('runningTimeout')
            ? json_['runningTimeout'] as core.String
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );