make method

void make(
  1. Request request
)
inherited

Implementation

void make(Request request) {
  data = const {};
  final (result, errors) = schema.validateSync(request.body ?? {});
  if (errors.isNotEmpty) {
    throw RequestValidationError.errors(ValidationErrorLocation.body, errors);
  }
  data = Map<String, dynamic>.from(result);
}