LabelRecordRecord class abstract

Metadata tag on an atproto resource (eg, repo or record), published as a record in the labeler's repository. Currently ONLY intended to be used in atproto space repos, not the public broadcast repository. For public data, continue to use signed label objects. This guidance may be updated in the future.

Available extensions
Annotations
  • @freezed

Constructors

LabelRecordRecord({@Default.new('com.atproto.label.record') String $type, required String uri, String? cid, required String val, @JsonKey.new(toJson: iso8601) required DateTime cts, @JsonKey.new(toJson: iso8601) DateTime? exp, Map<String, dynamic>? $unknown})
const
factory
LabelRecordRecord.fromJson(Map<String, Object?> json)
factory

Properties

$type → String
no setterinherited
$unknown → Map<String, dynamic>?
no setterinherited
cid → String?
Optionally, CID specifying the specific version of 'uri' resource this label applies to.
no setterinherited
copyWith → $LabelRecordRecordCopyWith<LabelRecordRecord>
Create a copy of LabelRecordRecord with the given fields replaced by the non-null parameter values.
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 LabelRecordRecord, provided by the LabelRecordRecordExtension extension

no setter
hasExp → bool

Available on LabelRecordRecord, provided by the LabelRecordRecordExtension extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
hasNotCid → bool

Available on LabelRecordRecord, provided by the LabelRecordRecordExtension extension

no setter
hasNotExp → bool

Available on LabelRecordRecord, provided by the LabelRecordRecordExtension extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → String
URI of the record, repository (account), or other resource that this label applies to. Currently only intended for use in the context of atproto spaces.
no setterinherited
val → String
The short string name of the value or type of this label.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_LabelRecordRecord value)) → TResult

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_LabelRecordRecord value)?) → TResult?

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_LabelRecordRecord value)?, {required TResult orElse()}) → TResult

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String $type, String uri, String? cid, String val, DateTime cts, DateTime? exp, Map<String, dynamic>? $unknown)?, {required TResult orElse()}) → TResult

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this LabelRecordRecord to a JSON map.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(String $type, String uri, String? cid, String val, DateTime cts, DateTime? exp, Map<String, dynamic>? $unknown)) → TResult

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(String $type, String uri, String? cid, String val, DateTime cts, DateTime? exp, Map<String, dynamic>? $unknown)?) → TResult?

Available on LabelRecordRecord, provided by the LabelRecordRecordPatterns extension

A variant of when that fallback to returning null

Operators

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

Static Methods

validate(Map<String, dynamic> object) → bool

Constants

knownProps → const List<String>