GoogleCloudRunV2Service.fromJson constructor

GoogleCloudRunV2Service.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRunV2Service.fromJson(core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        binaryAuthorization: json_.containsKey('binaryAuthorization')
            ? GoogleCloudRunV2BinaryAuthorization.fromJson(
                json_['binaryAuthorization']
                    as core.Map<core.String, core.dynamic>)
            : null,
        client: json_.containsKey('client')
            ? json_['client'] as core.String
            : null,
        clientVersion: json_.containsKey('clientVersion')
            ? json_['clientVersion'] as core.String
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV2Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? json_['creator'] as core.String
            : null,
        customAudiences: json_.containsKey('customAudiences')
            ? (json_['customAudiences'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        defaultUriDisabled: json_.containsKey('defaultUriDisabled')
            ? json_['defaultUriDisabled'] as core.bool
            : null,
        deleteTime: json_.containsKey('deleteTime')
            ? json_['deleteTime'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        generation: json_.containsKey('generation')
            ? json_['generation'] as core.String
            : null,
        ingress: json_.containsKey('ingress')
            ? json_['ingress'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastModifier: json_.containsKey('lastModifier')
            ? json_['lastModifier'] as core.String
            : null,
        latestCreatedRevision: json_.containsKey('latestCreatedRevision')
            ? json_['latestCreatedRevision'] as core.String
            : null,
        latestReadyRevision: json_.containsKey('latestReadyRevision')
            ? json_['latestReadyRevision'] as core.String
            : null,
        launchStage: json_.containsKey('launchStage')
            ? json_['launchStage'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.String
            : null,
        reconciling: json_.containsKey('reconciling')
            ? json_['reconciling'] as core.bool
            : null,
        satisfiesPzs: json_.containsKey('satisfiesPzs')
            ? json_['satisfiesPzs'] as core.bool
            : null,
        scaling: json_.containsKey('scaling')
            ? GoogleCloudRunV2ServiceScaling.fromJson(
                json_['scaling'] as core.Map<core.String, core.dynamic>)
            : null,
        template: json_.containsKey('template')
            ? GoogleCloudRunV2RevisionTemplate.fromJson(
                json_['template'] as core.Map<core.String, core.dynamic>)
            : null,
        terminalCondition: json_.containsKey('terminalCondition')
            ? GoogleCloudRunV2Condition.fromJson(json_['terminalCondition']
                as core.Map<core.String, core.dynamic>)
            : null,
        traffic: json_.containsKey('traffic')
            ? (json_['traffic'] as core.List)
                .map((value) => GoogleCloudRunV2TrafficTarget.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        trafficStatuses: json_.containsKey('trafficStatuses')
            ? (json_['trafficStatuses'] as core.List)
                .map((value) => GoogleCloudRunV2TrafficTargetStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        uid: json_.containsKey('uid') ? json_['uid'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );