Relationship constructor
- @JsonSerializable(includeIfNull: false)
const
Relationship(
{ - @Default('app.bsky.graph.defs#relationship') String $type,
- required String did,
- @AtUriConverter() AtUri? following,
- @AtUriConverter() AtUri? followedBy,
- Map<String, dynamic>? $unknown,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory Relationship({
@Default('app.bsky.graph.defs#relationship') String $type,
required String did,
/// if the actor follows this DID, this is the AT-URI of the follow record
@AtUriConverter() AtUri? following,
/// if the actor is followed by this DID, contains the AT-URI of the follow record
@AtUriConverter() AtUri? followedBy,
Map<String, dynamic>? $unknown,
}) = _Relationship;