StatusAttr constructor

  1. @JsonSerializable(includeIfNull: false)
const StatusAttr({
  1. @Default(comAtprotoAdminDefsStatusAttr) @JsonKey(name: r'$type') String $type,
  2. required bool applied,
  3. String? ref,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory StatusAttr({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.admin.defs#statusAttr`
  @Default(comAtprotoAdminDefsStatusAttr)
  @JsonKey(name: r'$type')
  String $type,
  required bool applied,
  String? ref,

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