fromEntityPlus static method

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

Implementation

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

  return BlockingModel(
    documentID: documentID,
    memberBlocking: entity.memberBlocking ?? '',
    memberBeingBlocked: entity.memberBeingBlocked,
  );
}