ObterEventosPJRequest constructor
- required String protocolo,
- required TipoEvento evento,
Implementation
ObterEventosPJRequest({required this.protocolo, required this.evento}) {
if (protocolo.isEmpty) {
throw ArgumentError('Protocolo não pode estar vazio');
}
if (!_isValidProtocol(protocolo)) {
throw ArgumentError('Formato de protocolo inválido');
}
}