Follow class

Model for the follower of a feed

Annotations
  • @JsonSerializable()
  • @DateTimeUTCConverter()

Constructors

Follow({required String feedId, required String targetId, required DateTime createdAt, required DateTime updatedAt})
Builds a Follow
const
Follow.fromJson(Map<String, dynamic> json)
Create a new instance from a JSON object
factory

Properties

createdAt DateTime
Date at which the follow relationship was created
final
feedId String
The combination of feed slug and user id separated by a colon
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
targetId String
The id of the feed you want to follow
final
updatedAt DateTime
Date at which the follow relationship was updated
final

Methods

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

Operators

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