validate method
Implementation
@override
void validate() {
if (scheduled == null && repeat == null) {
throw InvalidPaymentBodyException(
'Plan needs either repeat or scheduled');
}
}
@override
void validate() {
if (scheduled == null && repeat == null) {
throw InvalidPaymentBodyException(
'Plan needs either repeat or scheduled');
}
}