ZypperSettings.fromJson constructor

ZypperSettings.fromJson(
  1. Map json_
)

Implementation

ZypperSettings.fromJson(core.Map json_)
    : this(
        categories: json_.containsKey('categories')
            ? (json_['categories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        excludes: json_.containsKey('excludes')
            ? (json_['excludes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        exclusivePatches: json_.containsKey('exclusivePatches')
            ? (json_['exclusivePatches'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        severities: json_.containsKey('severities')
            ? (json_['severities'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        withOptional: json_.containsKey('withOptional')
            ? json_['withOptional'] as core.bool
            : null,
        withUpdate: json_.containsKey('withUpdate')
            ? json_['withUpdate'] as core.bool
            : null,
      );