RunMobileFriendlyTestResponse.fromJson constructor

RunMobileFriendlyTestResponse.fromJson(
  1. Map json_
)

Implementation

RunMobileFriendlyTestResponse.fromJson(core.Map json_)
    : this(
        mobileFriendliness: json_.containsKey('mobileFriendliness')
            ? json_['mobileFriendliness'] as core.String
            : null,
        mobileFriendlyIssues: json_.containsKey('mobileFriendlyIssues')
            ? (json_['mobileFriendlyIssues'] as core.List)
                .map((value) => MobileFriendlyIssue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resourceIssues: json_.containsKey('resourceIssues')
            ? (json_['resourceIssues'] as core.List)
                .map((value) => ResourceIssue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        screenshot: json_.containsKey('screenshot')
            ? Image.fromJson(
                json_['screenshot'] as core.Map<core.String, core.dynamic>)
            : null,
        testStatus: json_.containsKey('testStatus')
            ? TestStatus.fromJson(
                json_['testStatus'] as core.Map<core.String, core.dynamic>)
            : null,
      );