fromEntityPlus static method

Future<FollowingArrayModel?> fromEntityPlus(
  1. String documentID,
  2. FollowingArrayEntity? entity, {
  3. String? appId,
})

Implementation

static Future<FollowingArrayModel?> fromEntityPlus(
    String documentID, FollowingArrayEntity? entity,
    {String? appId}) async {
  if (entity == null) return null;

  return FollowingArrayModel(
    documentID: documentID,
    appId: entity.appId ?? '',
    followers: entity.followers,
  );
}