fromEntity static method

Future<FollowingArrayModel?> fromEntity(
  1. String documentID,
  2. FollowingArrayEntity? entity
)

Implementation

static Future<FollowingArrayModel?> fromEntity(
    String documentID, FollowingArrayEntity? entity) async {
  if (entity == null) return null;
  return FollowingArrayModel(
    documentID: documentID,
    appId: entity.appId ?? '',
    followers: entity.followers,
  );
}