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,
        initialSetupApks: json_.containsKey('initialSetupApks')
            ? (json_['initialSetupApks'] as core.List)
                .map((value) => Apk.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,
      );