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,
      );