validate method

  1. @override
void validate()
override

Implementation

@override
void validate() {
  super.validate();
  if (password == null) {
    throw new ApiException(
        400, 'Property Password in ProtectionRequest is required.');
  }
}