Deployment.fromJson constructor

Deployment.fromJson(
  1. Map json_
)

Implementation

Deployment.fromJson(core.Map json_)
    : this(
        cloudBuildOptions: json_.containsKey('cloudBuildOptions')
            ? CloudBuildOptions.fromJson(json_['cloudBuildOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        container: json_.containsKey('container')
            ? ContainerInfo.fromJson(
                json_['container'] as core.Map<core.String, core.dynamic>)
            : null,
        files: json_.containsKey('files')
            ? (json_['files'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  FileInfo.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        zip: json_.containsKey('zip')
            ? ZipInfo.fromJson(
                json_['zip'] as core.Map<core.String, core.dynamic>)
            : null,
      );