AndroidInstrumentationTest.fromJson constructor

AndroidInstrumentationTest.fromJson(
  1. Map json_
)

Implementation

AndroidInstrumentationTest.fromJson(core.Map json_)
    : this(
        appApk: json_.containsKey('appApk')
            ? FileReference.fromJson(
                json_['appApk'] as core.Map<core.String, core.dynamic>)
            : null,
        appBundle: json_.containsKey('appBundle')
            ? AppBundle.fromJson(
                json_['appBundle'] as core.Map<core.String, core.dynamic>)
            : null,
        appPackageId: json_.containsKey('appPackageId')
            ? json_['appPackageId'] as core.String
            : null,
        orchestratorOption: json_.containsKey('orchestratorOption')
            ? json_['orchestratorOption'] as core.String
            : null,
        shardingOption: json_.containsKey('shardingOption')
            ? ShardingOption.fromJson(json_['shardingOption']
                as core.Map<core.String, core.dynamic>)
            : null,
        testApk: json_.containsKey('testApk')
            ? FileReference.fromJson(
                json_['testApk'] as core.Map<core.String, core.dynamic>)
            : null,
        testPackageId: json_.containsKey('testPackageId')
            ? json_['testPackageId'] as core.String
            : null,
        testRunnerClass: json_.containsKey('testRunnerClass')
            ? json_['testRunnerClass'] as core.String
            : null,
        testTargets: json_.containsKey('testTargets')
            ? (json_['testTargets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );