AndroidRoboTest.fromJson constructor

AndroidRoboTest.fromJson(
  1. Map _json
)

Implementation

AndroidRoboTest.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,
        appInitialActivity: _json.containsKey('appInitialActivity')
            ? _json['appInitialActivity'] as core.String
            : null,
        appPackageId: _json.containsKey('appPackageId')
            ? _json['appPackageId'] as core.String
            : null,
        maxDepth: _json.containsKey('maxDepth')
            ? _json['maxDepth'] as core.int
            : null,
        maxSteps: _json.containsKey('maxSteps')
            ? _json['maxSteps'] as core.int
            : null,
        roboDirectives: _json.containsKey('roboDirectives')
            ? (_json['roboDirectives'] as core.List)
                .map((value) => RoboDirective.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        roboMode: _json.containsKey('roboMode')
            ? _json['roboMode'] as core.String
            : null,
        roboScript: _json.containsKey('roboScript')
            ? FileReference.fromJson(
                _json['roboScript'] as core.Map<core.String, core.dynamic>)
            : null,
        startingIntents: _json.containsKey('startingIntents')
            ? (_json['startingIntents'] as core.List)
                .map((value) => RoboStartingIntent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );