TestRulesetResponse.fromJson constructor

TestRulesetResponse.fromJson(
  1. Map json_
)

Implementation

TestRulesetResponse.fromJson(core.Map json_)
    : this(
        issues: json_.containsKey('issues')
            ? (json_['issues'] as core.List)
                .map((value) => Issue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        testResults: json_.containsKey('testResults')
            ? (json_['testResults'] as core.List)
                .map((value) => TestResult.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );