isRequired property

bool isRequired

Determines whether this parameter is mandatory.

If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.


bool get isRequired =>
    (location == APIParameterLocation.path ? true : (_required ?? false));
void isRequired=(bool f)


set isRequired(bool f) {
  _required = f;