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,
      );