Version.fromJson constructor

Version.fromJson(
  1. Map json_
)

Implementation

Version.fromJson(core.Map json_)
    : this(
        apiConfig: json_.containsKey('apiConfig')
            ? ApiConfigHandler.fromJson(
                json_['apiConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        appEngineApis: json_.containsKey('appEngineApis')
            ? json_['appEngineApis'] as core.bool
            : null,
        automaticScaling: json_.containsKey('automaticScaling')
            ? AutomaticScaling.fromJson(json_['automaticScaling']
                as core.Map<core.String, core.dynamic>)
            : null,
        basicScaling: json_.containsKey('basicScaling')
            ? BasicScaling.fromJson(
                json_['basicScaling'] as core.Map<core.String, core.dynamic>)
            : null,
        betaSettings: json_.containsKey('betaSettings')
            ? (json_['betaSettings'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        buildEnvVariables: json_.containsKey('buildEnvVariables')
            ? (json_['buildEnvVariables']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        createdBy: json_.containsKey('createdBy')
            ? json_['createdBy'] as core.String
            : null,
        defaultExpiration: json_.containsKey('defaultExpiration')
            ? json_['defaultExpiration'] as core.String
            : null,
        deployment: json_.containsKey('deployment')
            ? Deployment.fromJson(
                json_['deployment'] as core.Map<core.String, core.dynamic>)
            : null,
        diskUsageBytes: json_.containsKey('diskUsageBytes')
            ? json_['diskUsageBytes'] as core.String
            : null,
        endpointsApiService: json_.containsKey('endpointsApiService')
            ? EndpointsApiService.fromJson(json_['endpointsApiService']
                as core.Map<core.String, core.dynamic>)
            : null,
        entrypoint: json_.containsKey('entrypoint')
            ? Entrypoint.fromJson(
                json_['entrypoint'] as core.Map<core.String, core.dynamic>)
            : null,
        env: json_.containsKey('env') ? json_['env'] as core.String : null,
        envVariables: json_.containsKey('envVariables')
            ? (json_['envVariables'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        errorHandlers: json_.containsKey('errorHandlers')
            ? (json_['errorHandlers'] as core.List)
                .map((value) => ErrorHandler.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        flexibleRuntimeSettings: json_.containsKey('flexibleRuntimeSettings')
            ? FlexibleRuntimeSettings.fromJson(
                json_['flexibleRuntimeSettings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        generatedCustomerMetadata:
            json_.containsKey('generatedCustomerMetadata')
                ? json_['generatedCustomerMetadata']
                    as core.Map<core.String, core.dynamic>
                : null,
        handlers: json_.containsKey('handlers')
            ? (json_['handlers'] as core.List)
                .map((value) => UrlMap.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        healthCheck: json_.containsKey('healthCheck')
            ? HealthCheck.fromJson(
                json_['healthCheck'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        inboundServices: json_.containsKey('inboundServices')
            ? (json_['inboundServices'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        instanceClass: json_.containsKey('instanceClass')
            ? json_['instanceClass'] as core.String
            : null,
        libraries: json_.containsKey('libraries')
            ? (json_['libraries'] as core.List)
                .map((value) => Library.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        livenessCheck: json_.containsKey('livenessCheck')
            ? LivenessCheck.fromJson(
                json_['livenessCheck'] as core.Map<core.String, core.dynamic>)
            : null,
        manualScaling: json_.containsKey('manualScaling')
            ? ManualScaling.fromJson(
                json_['manualScaling'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? Network.fromJson(
                json_['network'] as core.Map<core.String, core.dynamic>)
            : null,
        nobuildFilesRegex: json_.containsKey('nobuildFilesRegex')
            ? json_['nobuildFilesRegex'] as core.String
            : null,
        readinessCheck: json_.containsKey('readinessCheck')
            ? ReadinessCheck.fromJson(json_['readinessCheck']
                as core.Map<core.String, core.dynamic>)
            : null,
        resources: json_.containsKey('resources')
            ? Resources.fromJson(
                json_['resources'] as core.Map<core.String, core.dynamic>)
            : null,
        runtime: json_.containsKey('runtime')
            ? json_['runtime'] as core.String
            : null,
        runtimeApiVersion: json_.containsKey('runtimeApiVersion')
            ? json_['runtimeApiVersion'] as core.String
            : null,
        runtimeChannel: json_.containsKey('runtimeChannel')
            ? json_['runtimeChannel'] as core.String
            : null,
        runtimeMainExecutablePath:
            json_.containsKey('runtimeMainExecutablePath')
                ? json_['runtimeMainExecutablePath'] as core.String
                : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        servingStatus: json_.containsKey('servingStatus')
            ? json_['servingStatus'] as core.String
            : null,
        threadsafe: json_.containsKey('threadsafe')
            ? json_['threadsafe'] as core.bool
            : null,
        versionUrl: json_.containsKey('versionUrl')
            ? json_['versionUrl'] as core.String
            : null,
        vm: json_.containsKey('vm') ? json_['vm'] as core.bool : null,
        vpcAccessConnector: json_.containsKey('vpcAccessConnector')
            ? VpcAccessConnector.fromJson(json_['vpcAccessConnector']
                as core.Map<core.String, core.dynamic>)
            : null,
        zones: json_.containsKey('zones')
            ? (json_['zones'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );