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