HttpCheck.fromJson constructor

HttpCheck.fromJson(
  1. Map json_
)

Implementation

HttpCheck.fromJson(core.Map json_)
    : this(
        acceptedResponseStatusCodes:
            json_.containsKey('acceptedResponseStatusCodes')
                ? (json_['acceptedResponseStatusCodes'] as core.List)
                    .map((value) => ResponseStatusCode.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        authInfo: json_.containsKey('authInfo')
            ? BasicAuthentication.fromJson(
                json_['authInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        body: json_.containsKey('body') ? json_['body'] as core.String : null,
        contentType: json_.containsKey('contentType')
            ? json_['contentType'] as core.String
            : null,
        customContentType: json_.containsKey('customContentType')
            ? json_['customContentType'] as core.String
            : null,
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        maskHeaders: json_.containsKey('maskHeaders')
            ? json_['maskHeaders'] as core.bool
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        pingConfig: json_.containsKey('pingConfig')
            ? PingConfig.fromJson(
                json_['pingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        requestMethod: json_.containsKey('requestMethod')
            ? json_['requestMethod'] as core.String
            : null,
        serviceAgentAuthentication:
            json_.containsKey('serviceAgentAuthentication')
                ? ServiceAgentAuthentication.fromJson(
                    json_['serviceAgentAuthentication']
                        as core.Map<core.String, core.dynamic>)
                : null,
        useSsl:
            json_.containsKey('useSsl') ? json_['useSsl'] as core.bool : null,
        validateSsl: json_.containsKey('validateSsl')
            ? json_['validateSsl'] as core.bool
            : null,
      );