getBuilder static method

DeleteVerbBuilder getBuilder(
  1. String command
)

Returns a builder instance from a delete command

Implementation

static DeleteVerbBuilder getBuilder(String command) {
  var builder = DeleteVerbBuilder();
  var verbParams = VerbUtil.getVerbParam(VerbSyntax.delete, command)!;
  if (verbParams[AtConstants.atKey] == null) {
    throw AtKeyException('Key cannot be null or empty');
  }
  builder.atKey.key = verbParams[AtConstants.atKey]!;
  return builder;
}