$ListPolicy.fromJson constructor Null safety

$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,
      );