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,
        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,
      );