AndroidTestLoop.fromJson constructor

AndroidTestLoop.fromJson(
  1. Map json_
)

Implementation

AndroidTestLoop.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,
        scenarioLabels: json_.containsKey('scenarioLabels')
            ? (json_['scenarioLabels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        scenarios: json_.containsKey('scenarios')
            ? (json_['scenarios'] as core.List)
                .map((value) => value as core.int)
                .toList()
            : null,
      );