SelfLabel constructor
- @JsonSerializable(includeIfNull: false)
const
SelfLabel(
{ - @Default(comAtprotoLabelDefsSelfLabel) @JsonKey(name: r'$type') String $type,
- required String val,
- @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory SelfLabel({
/// The unique namespace for this lex object.
///
/// `com.atproto.label.defs#selfLabel`
@Default(comAtprotoLabelDefsSelfLabel)
@JsonKey(name: r'$type')
String $type,
/// The short string name of the value or type of this label.
required String val,
/// Contains unknown objects not defined in Lexicon.
@JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _SelfLabel;