TestCase.fromJson constructor

TestCase.fromJson(
  1. Map json_
)

Implementation

TestCase.fromJson(core.Map json_)
    : this(
        elapsedTime: json_.containsKey('elapsedTime')
            ? Duration.fromJson(
                json_['elapsedTime'] as core.Map<core.String, core.dynamic>)
            : null,
        endTime: json_.containsKey('endTime')
            ? Timestamp.fromJson(
                json_['endTime'] as core.Map<core.String, core.dynamic>)
            : null,
        skippedMessage: json_.containsKey('skippedMessage')
            ? json_['skippedMessage'] as core.String
            : null,
        stackTraces: json_.containsKey('stackTraces')
            ? (json_['stackTraces'] as core.List)
                .map((value) => StackTrace.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startTime: json_.containsKey('startTime')
            ? Timestamp.fromJson(
                json_['startTime'] as core.Map<core.String, core.dynamic>)
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        testCaseId: json_.containsKey('testCaseId')
            ? json_['testCaseId'] as core.String
            : null,
        testCaseReference: json_.containsKey('testCaseReference')
            ? TestCaseReference.fromJson(json_['testCaseReference']
                as core.Map<core.String, core.dynamic>)
            : null,
        toolOutputs: json_.containsKey('toolOutputs')
            ? (json_['toolOutputs'] as core.List)
                .map((value) => ToolOutputReference.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );