TestFailure.fromJson constructor

TestFailure.fromJson(
  1. Map json_
)

Implementation

TestFailure.fromJson(core.Map json_)
    : this(
        actualOutputUrl: json_.containsKey('actualOutputUrl')
            ? json_['actualOutputUrl'] as core.String
            : null,
        actualRedirectResponseCode:
            json_.containsKey('actualRedirectResponseCode')
                ? json_['actualRedirectResponseCode'] as core.int
                : null,
        actualService: json_.containsKey('actualService')
            ? json_['actualService'] as core.String
            : null,
        expectedOutputUrl: json_.containsKey('expectedOutputUrl')
            ? json_['expectedOutputUrl'] as core.String
            : null,
        expectedRedirectResponseCode:
            json_.containsKey('expectedRedirectResponseCode')
                ? json_['expectedRedirectResponseCode'] as core.int
                : null,
        expectedService: json_.containsKey('expectedService')
            ? json_['expectedService'] as core.String
            : null,
        headers: json_.containsKey('headers')
            ? (json_['headers'] as core.List)
                .map((value) => UrlMapTestHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
      );