toEntity method

  1. @override
FollowingEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
FollowingEntity toEntity({String? appId}) {
  return FollowingEntity(
    appId: appId,
    followerId: (follower != null) ? follower!.documentID : null,
    followedId: (followed != null) ? followed!.documentID : null,
  );
}