LabelValueDefinitionStrings constructor

  1. @JsonSerializable(includeIfNull: false)
const LabelValueDefinitionStrings({
  1. @Default(comAtprotoLabelDefsLabelValueDefinitionStrings) @JsonKey(name: r'$type') String $type,
  2. required String lang,
  3. required String name,
  4. required String description,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory LabelValueDefinitionStrings({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.label.defs#labelValueDefinitionStrings`
  @Default(comAtprotoLabelDefsLabelValueDefinitionStrings)
  @JsonKey(name: r'$type')
  String $type,

  /// The code of the language these strings are written in.
  required String lang,

  /// A short human-readable name for the label.
  required String name,

  /// A longer description of what the label means and why it might be
  /// applied.
  required String description,

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