getConstructor static method

BsonConstructor getConstructor(
  1. int typeId
)

Implementation

static BsonConstructor getConstructor(int typeId) {
  Type? type = _repositoryId[typeId];
  if (type == null) {
    throw ArgumentError('No Type information found for typeId $typeId');
  }
  BsonConstructor? constructor = _repository[type];
  if (constructor == null) {
    throw ArgumentError('No constructor information found for type "$type"');
  }
  return constructor;
}