fromEntity static method

Future<FollowRequestModel?> fromEntity(
  1. String documentID,
  2. FollowRequestEntity? entity
)

Implementation

static Future<FollowRequestModel?> fromEntity(
    String documentID, FollowRequestEntity? entity) async {
  if (entity == null) return null;
  return FollowRequestModel(
    documentID: documentID,
    appId: entity.appId ?? '',
    status: toFollowRequestStatus(entity.status),
  );
}