SelfLabels constructor

  1. @JsonSerializable(includeIfNull: false)
const SelfLabels({
  1. @Default(comAtprotoLabelDefsSelfLabels) @JsonKey(name: r'$type') String $type,
  2. @SelfLabelConverter() required List<SelfLabel> values,
  3. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory SelfLabels({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.label.defs#selfLabels`
  @Default(comAtprotoLabelDefsSelfLabels)
  @JsonKey(name: r'$type')
  String $type,
  @SelfLabelConverter() required List<SelfLabel> values,

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