toEntity method

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

Implementation

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