Service.fromJson constructor

Service.fromJson(
  1. Map json_
)

Implementation

Service.fromJson(core.Map json_)
    : this(
        appEngine: json_.containsKey('appEngine')
            ? AppEngine.fromJson(
                json_['appEngine'] as core.Map<core.String, core.dynamic>)
            : null,
        basicService: json_.containsKey('basicService')
            ? BasicService.fromJson(
                json_['basicService'] as core.Map<core.String, core.dynamic>)
            : null,
        cloudEndpoints: json_.containsKey('cloudEndpoints')
            ? CloudEndpoints.fromJson(json_['cloudEndpoints']
                as core.Map<core.String, core.dynamic>)
            : null,
        cloudRun: json_.containsKey('cloudRun')
            ? CloudRun.fromJson(
                json_['cloudRun'] as core.Map<core.String, core.dynamic>)
            : null,
        clusterIstio: json_.containsKey('clusterIstio')
            ? ClusterIstio.fromJson(
                json_['clusterIstio'] as core.Map<core.String, core.dynamic>)
            : null,
        custom: json_.containsKey('custom')
            ? Custom.fromJson(
                json_['custom'] as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        gkeNamespace: json_.containsKey('gkeNamespace')
            ? GkeNamespace.fromJson(
                json_['gkeNamespace'] as core.Map<core.String, core.dynamic>)
            : null,
        gkeService: json_.containsKey('gkeService')
            ? GkeService.fromJson(
                json_['gkeService'] as core.Map<core.String, core.dynamic>)
            : null,
        gkeWorkload: json_.containsKey('gkeWorkload')
            ? GkeWorkload.fromJson(
                json_['gkeWorkload'] as core.Map<core.String, core.dynamic>)
            : null,
        istioCanonicalService: json_.containsKey('istioCanonicalService')
            ? IstioCanonicalService.fromJson(json_['istioCanonicalService']
                as core.Map<core.String, core.dynamic>)
            : null,
        meshIstio: json_.containsKey('meshIstio')
            ? MeshIstio.fromJson(
                json_['meshIstio'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        telemetry: json_.containsKey('telemetry')
            ? Telemetry.fromJson(
                json_['telemetry'] as core.Map<core.String, core.dynamic>)
            : null,
        userLabels: json_.containsKey('userLabels')
            ? (json_['userLabels'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );