getInterpretedLabelValueDefinitions function
List<InterpretedLabelValueDefinition>
getInterpretedLabelValueDefinitions(
- LabelerViewDetailed labelerView
Implementation
List<InterpretedLabelValueDefinition> getInterpretedLabelValueDefinitions(
final LabelerViewDetailed labelerView,
) {
return labelerView.policies.labelValueDefinitions
?.map((e) => getInterpretedLabelValueDefinition(
identifier: e.identifier,
defaultSetting: LabelPreference.valueOf(e.defaultSetting) ??
LabelPreference.warn,
severity: e.severity,
blurs: e.blurs,
adultOnly: e.adultOnly,
definedBy: labelerView.creator.did,
))
.toList() ??
const [];
}