LabelValueDefinition constructor
Implementation
@JsonSerializable(includeIfNull: false)
const factory LabelValueDefinition({
@Default('com.atproto.label.defs#labelValueDefinition') String $type,
/// The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).
required String identifier,
/// How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
@LabelValueDefinitionSeverityConverter()
required LabelValueDefinitionSeverity severity,
/// What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
@LabelValueDefinitionBlursConverter()
required LabelValueDefinitionBlurs blurs,
/// The default setting for this label.
@LabelValueDefinitionDefaultSettingConverter()
LabelValueDefinitionDefaultSetting? defaultSetting,
/// Does the user need to have adult content enabled in order to configure this label?
bool? adultOnly,
@LabelValueDefinitionStringsConverter()
required List<LabelValueDefinitionStrings> locales,
Map<String, dynamic>? $unknown,
}) = _LabelValueDefinition;