SelfLabel constructor

  1. @JsonSerializable(includeIfNull: false)
const SelfLabel({
  1. @Default(comAtprotoLabelDefsSelfLabel) @JsonKey(name: r'$type') String $type,
  2. required String val,
  3. @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;