TestSetup.fromJson constructor

TestSetup.fromJson(
  1. Map _json
)

Implementation

TestSetup.fromJson(core.Map _json)
    : this(
        account: _json.containsKey('account')
            ? Account.fromJson(
                _json['account'] as core.Map<core.String, core.dynamic>)
            : null,
        additionalApks: _json.containsKey('additionalApks')
            ? (_json['additionalApks'] as core.List)
                .map((value) => Apk.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        directoriesToPull: _json.containsKey('directoriesToPull')
            ? (_json['directoriesToPull'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        dontAutograntPermissions:
            _json.containsKey('dontAutograntPermissions')
                ? _json['dontAutograntPermissions'] as core.bool
                : null,
        environmentVariables: _json.containsKey('environmentVariables')
            ? (_json['environmentVariables'] as core.List)
                .map((value) => EnvironmentVariable.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        filesToPush: _json.containsKey('filesToPush')
            ? (_json['filesToPush'] as core.List)
                .map((value) => DeviceFile.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        networkProfile: _json.containsKey('networkProfile')
            ? _json['networkProfile'] as core.String
            : null,
        systrace: _json.containsKey('systrace')
            ? SystraceSetup.fromJson(
                _json['systrace'] as core.Map<core.String, core.dynamic>)
            : null,
      );