TestCase.fromJson constructor

TestCase.fromJson(
  1. Map json_
)

Implementation

TestCase.fromJson(core.Map json_)
    : this(
        expectation: json_.containsKey('expectation')
            ? json_['expectation'] as core.String
            : null,
        expressionReportLevel: json_.containsKey('expressionReportLevel')
            ? json_['expressionReportLevel'] as core.String
            : null,
        functionMocks: json_.containsKey('functionMocks')
            ? (json_['functionMocks'] as core.List)
                .map((value) => FunctionMock.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pathEncoding: json_.containsKey('pathEncoding')
            ? json_['pathEncoding'] as core.String
            : null,
        request: json_.containsKey('request') ? json_['request'] : null,
        resource: json_.containsKey('resource') ? json_['resource'] : null,
      );