StringRestrictions.fromJson constructor

StringRestrictions.fromJson(
  1. Map json_
)

Implementation

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