validate method

  1. @override
void validate()
override

Implementation

@override
void validate() {
  if (isMatchCase == null) {
    throw new ApiException(
        400, 'Property IsMatchCase in ReplaceTextParameters is required.');
  }
  if (isMatchWholeWord == null) {
    throw new ApiException(400,
        'Property IsMatchWholeWord in ReplaceTextParameters is required.');
  }
  if (isOldValueRegex == null) {
    throw new ApiException(400,
        'Property IsOldValueRegex in ReplaceTextParameters is required.');
  }
  if (newValue == null) {
    throw new ApiException(
        400, 'Property NewValue in ReplaceTextParameters is required.');
  }
  if (oldValue == null) {
    throw new ApiException(
        400, 'Property OldValue in ReplaceTextParameters is required.');
  }
}