UptimeCheckConfig.fromJson constructor

UptimeCheckConfig.fromJson(
  1. Map json_
)

Implementation

UptimeCheckConfig.fromJson(core.Map json_)
    : this(
        checkerType: json_.containsKey('checkerType')
            ? json_['checkerType'] as core.String
            : null,
        contentMatchers: json_.containsKey('contentMatchers')
            ? (json_['contentMatchers'] as core.List)
                .map((value) => ContentMatcher.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        httpCheck: json_.containsKey('httpCheck')
            ? HttpCheck.fromJson(
                json_['httpCheck'] as core.Map<core.String, core.dynamic>)
            : null,
        internalCheckers: json_.containsKey('internalCheckers')
            ? (json_['internalCheckers'] as core.List)
                .map((value) => InternalChecker.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        isInternal: json_.containsKey('isInternal')
            ? json_['isInternal'] as core.bool
            : null,
        monitoredResource: json_.containsKey('monitoredResource')
            ? MonitoredResource.fromJson(json_['monitoredResource']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        period: json_.containsKey('period')
            ? json_['period'] as core.String
            : null,
        resourceGroup: json_.containsKey('resourceGroup')
            ? ResourceGroup.fromJson(
                json_['resourceGroup'] as core.Map<core.String, core.dynamic>)
            : null,
        selectedRegions: json_.containsKey('selectedRegions')
            ? (json_['selectedRegions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        syntheticMonitor: json_.containsKey('syntheticMonitor')
            ? SyntheticMonitorTarget.fromJson(json_['syntheticMonitor']
                as core.Map<core.String, core.dynamic>)
            : null,
        tcpCheck: json_.containsKey('tcpCheck')
            ? TcpCheck.fromJson(
                json_['tcpCheck'] as core.Map<core.String, core.dynamic>)
            : null,
        timeout: json_.containsKey('timeout')
            ? json_['timeout'] as core.String
            : 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,
      );