ContainerSpec.fromJson constructor

ContainerSpec.fromJson(
  1. Map json_
)

Implementation

ContainerSpec.fromJson(core.Map json_)
    : this(
        defaultEnvironment: json_.containsKey('defaultEnvironment')
            ? FlexTemplateRuntimeEnvironment.fromJson(
                json_['defaultEnvironment']
                    as core.Map<core.String, core.dynamic>)
            : null,
        image:
            json_.containsKey('image') ? json_['image'] as core.String : null,
        imageRepositoryCertPath: json_.containsKey('imageRepositoryCertPath')
            ? json_['imageRepositoryCertPath'] as core.String
            : null,
        imageRepositoryPasswordSecretId:
            json_.containsKey('imageRepositoryPasswordSecretId')
                ? json_['imageRepositoryPasswordSecretId'] as core.String
                : null,
        imageRepositoryUsernameSecretId:
            json_.containsKey('imageRepositoryUsernameSecretId')
                ? json_['imageRepositoryUsernameSecretId'] as core.String
                : null,
        metadata: json_.containsKey('metadata')
            ? TemplateMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        sdkInfo: json_.containsKey('sdkInfo')
            ? SDKInfo.fromJson(
                json_['sdkInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );