AptSettings.fromJson constructor

AptSettings.fromJson(
  1. Map json_
)

Implementation

AptSettings.fromJson(core.Map json_)
    : this(
        excludes: json_.containsKey('excludes')
            ? (json_['excludes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        exclusivePackages: json_.containsKey('exclusivePackages')
            ? (json_['exclusivePackages'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );