ServiceStatus.fromJson constructor

ServiceStatus.fromJson(
  1. Map json_
)

Implementation

ServiceStatus.fromJson(core.Map json_)
    : this(
        address: json_.containsKey('address')
            ? Addressable.fromJson(
                json_['address'] as core.Map<core.String, core.dynamic>)
            : null,
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => GoogleCloudRunV1Condition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        latestCreatedRevisionName:
            json_.containsKey('latestCreatedRevisionName')
                ? json_['latestCreatedRevisionName'] as core.String
                : null,
        latestReadyRevisionName: json_.containsKey('latestReadyRevisionName')
            ? json_['latestReadyRevisionName'] as core.String
            : null,
        observedGeneration: json_.containsKey('observedGeneration')
            ? json_['observedGeneration'] as core.int
            : null,
        traffic: json_.containsKey('traffic')
            ? (json_['traffic'] as core.List)
                .map((value) => TrafficTarget.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );