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.new({@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
hasCid bool

Available on Label, provided by the $LabelExtension extension

Returns true if cid is not null, otherwise false.
no setter
hasExp bool

Available on Label, provided by the $LabelExtension extension

Returns true if exp is not null, otherwise false.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasNotCid bool

Available on Label, provided by the $LabelExtension extension

Returns true if cid is null, otherwise false.
no setter
hasNotExp bool

Available on Label, provided by the $LabelExtension extension

Returns true if exp is null, otherwise false.
no setter
hasNotSig bool

Available on Label, provided by the $LabelExtension extension

Returns true if sig is null, otherwise false.
no setter
hasNotUnknown bool

Available on Label, provided by the $LabelExtension extension

Returns true if this object has not unknown objects, otherwise false.
no setter
hasSig bool

Available on Label, provided by the $LabelExtension extension

Returns true if sig is not null, otherwise false.
no setter
hasUnknown bool

Available on Label, provided by the $LabelExtension extension

Returns true if this object has unknown objects, otherwise false.
no setter
isNeg bool

Available on Label, provided by the $LabelExtension extension

Returns true or false from neg.
no setter
isNotNeg bool

Available on Label, provided by the $LabelExtension extension

Returns negated true or false from neg.
no setter
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