ObterEventosPJRequest constructor

ObterEventosPJRequest({
  1. required String protocolo,
  2. 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');
  }
}