FollowStateData constructor

const FollowStateData({
  1. @JsonKey(name: 'following') required bool isFollowing,
  2. @JsonKey(name: 'pending_follow') @Default(false) bool isPending,
})

Implementation

const factory FollowStateData({
  /// Indicates whether the user followed the specified List as a result
  /// of the request.
  @JsonKey(name: 'following') required bool isFollowing,

  /// Indicates whether the target user will need to approve the follow
  /// request.
  ///
  /// Note that the authenticated user will follow the target user only
  /// when they approve the incoming follower request.
  @JsonKey(name: 'pending_follow') @Default(false) bool isPending,
}) = _FollowStateData;