Label class

Annotations
  • @freezed

Constructors

Label({int? ver, required String src, required String uri, String? cid, @JsonKey(name: 'val') required String value, @JsonKey(name: 'neg') @Default(false) bool isNegate, @JsonKey(name: 'cts') required DateTime createdAt, DateTime? exp, List<int>? sig})
const
factory
Label.fromJson(Map<String, Object?> json)
factory

Properties

cid String?
Optionally, CID specifying the specific version of 'uri' resource this label applies to.
no setterinherited
copyWith → $LabelCopyWith<Label>
no setterinherited
createdAt 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
isNegate 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 which this label applies to.
no setterinherited
value 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