$ListPolicy.fromJson constructor

$ListPolicy.fromJson(
  1. Map json_
)

Implementation

$ListPolicy.fromJson(core.Map json_)
    : this(
        allValues: json_.containsKey('allValues')
            ? json_['allValues'] as core.String
            : null,
        allowedValues: json_.containsKey('allowedValues')
            ? (json_['allowedValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        deniedValues: json_.containsKey('deniedValues')
            ? (json_['deniedValues'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        inheritFromParent: json_.containsKey('inheritFromParent')
            ? json_['inheritFromParent'] as core.bool
            : null,
        suggestedValue: json_.containsKey('suggestedValue')
            ? json_['suggestedValue'] as core.String
            : null,
      );