Labels constructor

  1. @JsonSerializable(includeIfNull: false)
const Labels({
  1. @Default(comAtprotoLabelSubscribeLabelsLabels) @JsonKey(name: r'$type') String $type,
  2. required int seq,
  3. @LabelConverter() required List<Label> labels,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Labels({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.label.subscribeLabels#labels`
  @Default(comAtprotoLabelSubscribeLabelsLabels)
  @JsonKey(name: r'$type')
  String $type,
  required int seq,
  @LabelConverter() required List<Label> labels,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _Labels;