YumSettings.fromJson constructor

YumSettings.fromJson(
  1. Map json_
)

Implementation

YumSettings.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,
        minimal: json_.containsKey('minimal')
            ? json_['minimal'] as core.bool
            : null,
        security: json_.containsKey('security')
            ? json_['security'] as core.bool
            : null,
      );