Volume.fromJson constructor

Volume.fromJson(
  1. Map json_
)

Implementation

Volume.fromJson(core.Map json_)
    : this(
        deviceName: json_.containsKey('deviceName')
            ? json_['deviceName'] as core.String
            : null,
        gcs: json_.containsKey('gcs')
            ? GCS
                .fromJson(json_['gcs'] as core.Map<core.String, core.dynamic>)
            : null,
        mountOptions: json_.containsKey('mountOptions')
            ? (json_['mountOptions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        mountPath: json_.containsKey('mountPath')
            ? json_['mountPath'] as core.String
            : null,
        nfs: json_.containsKey('nfs')
            ? NFS
                .fromJson(json_['nfs'] as core.Map<core.String, core.dynamic>)
            : null,
      );