fromEntity static method

Future<BlockingModel?> fromEntity(
  1. String documentID,
  2. BlockingEntity? entity
)

Implementation

static Future<BlockingModel?> fromEntity(
    String documentID, BlockingEntity? entity) async {
  if (entity == null) return null;
  return BlockingModel(
    documentID: documentID,
    memberBlocking: entity.memberBlocking ?? '',
    memberBeingBlocked: entity.memberBeingBlocked,
  );
}