TestMatrix.fromJson constructor

TestMatrix.fromJson(
  1. Map json_
)

Implementation

TestMatrix.fromJson(core.Map json_)
    : this(
        clientInfo: json_.containsKey('clientInfo')
            ? ClientInfo.fromJson(
                json_['clientInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        environmentMatrix: json_.containsKey('environmentMatrix')
            ? EnvironmentMatrix.fromJson(json_['environmentMatrix']
                as core.Map<core.String, core.dynamic>)
            : null,
        failFast: json_.containsKey('failFast')
            ? json_['failFast'] as core.bool
            : null,
        flakyTestAttempts: json_.containsKey('flakyTestAttempts')
            ? json_['flakyTestAttempts'] as core.int
            : null,
        invalidMatrixDetails: json_.containsKey('invalidMatrixDetails')
            ? json_['invalidMatrixDetails'] as core.String
            : null,
        outcomeSummary: json_.containsKey('outcomeSummary')
            ? json_['outcomeSummary'] as core.String
            : null,
        projectId: json_.containsKey('projectId')
            ? json_['projectId'] as core.String
            : null,
        resultStorage: json_.containsKey('resultStorage')
            ? ResultStorage.fromJson(
                json_['resultStorage'] as core.Map<core.String, core.dynamic>)
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        testExecutions: json_.containsKey('testExecutions')
            ? (json_['testExecutions'] as core.List)
                .map((value) => TestExecution.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        testMatrixId: json_.containsKey('testMatrixId')
            ? json_['testMatrixId'] as core.String
            : null,
        testSpecification: json_.containsKey('testSpecification')
            ? TestSpecification.fromJson(json_['testSpecification']
                as core.Map<core.String, core.dynamic>)
            : null,
        timestamp: json_.containsKey('timestamp')
            ? json_['timestamp'] as core.String
            : null,
      );