Label class

Metadata tag on an atproto resource (eg, repo or record).

https://atprotodart.com/docs/lexicons/com/atproto/label/defs#label

Available extensions
Annotations
  • @freezed

Constructors

Label({@Default(comAtprotoLabelDefsLabel) @JsonKey(name: r'$type') String $type, @Default(0) int ver, required String src, required String uri, String? cid, required String val, @Default(false) bool neg, required DateTime cts, DateTime? exp, List<int>? sig, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
Label.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
cid String?
Optionally, CID specifying the specific version of 'uri' resource this label applies to.
no setterinherited
copyWith → $LabelCopyWith<Label>
no setterinherited
cts DateTime
Timestamp when this label was created.
no setterinherited
exp DateTime?
Timestamp at which this label expires (no longer applies).
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
neg bool
If true, this is a negation label, overwriting a previous label.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sig List<int>?
Signature of dag-cbor encoded label.
no setterinherited
src String
DID of the actor who created this label.
no setterinherited
uri String
AT URI of the record, repository (account), or other resource that this label applies to.
no setterinherited
val String
The short string name of the value or type of this label.
no setterinherited
ver int
The AT Protocol version of the label object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited