RevisionStatus.fromJson constructor

RevisionStatus.fromJson(
  1. Map json_
)

Implementation

RevisionStatus.fromJson(core.Map json_)
    : this(
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV1Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        desiredReplicas: json_.containsKey('desiredReplicas')
            ? json_['desiredReplicas'] as core.int
            : null,
        imageDigest: json_.containsKey('imageDigest')
            ? json_['imageDigest'] as core.String
            : null,
        logUrl: json_.containsKey('logUrl')
            ? json_['logUrl'] as core.String
            : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.int
            : null,
        serviceName: json_.containsKey('serviceName')
            ? json_['serviceName'] as core.String
            : null,
      );