fromEntity static method

Future<FollowingModel?> fromEntity(
  1. String documentID,
  2. FollowingEntity? entity
)

Implementation

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