ImageVersion.fromJson constructor

ImageVersion.fromJson(
  1. Map json_
)

Implementation

ImageVersion.fromJson(core.Map json_)
    : this(
        creationDisabled: json_.containsKey('creationDisabled')
            ? json_['creationDisabled'] as core.bool
            : null,
        imageVersionId: json_.containsKey('imageVersionId')
            ? json_['imageVersionId'] as core.String
            : null,
        isDefault: json_.containsKey('isDefault')
            ? json_['isDefault'] as core.bool
            : null,
        releaseDate: json_.containsKey('releaseDate')
            ? Date.fromJson(
                json_['releaseDate'] as core.Map<core.String, core.dynamic>)
            : null,
        supportedPythonVersions: json_.containsKey('supportedPythonVersions')
            ? (json_['supportedPythonVersions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        upgradeDisabled: json_.containsKey('upgradeDisabled')
            ? json_['upgradeDisabled'] as core.bool
            : null,
      );