dereference method
Implementation
Parameter dereference({required Map<String, Parameter>? components}) {
if (ref == null) {
return this;
}
final pRef = components?[ref?.split('/').last];
if (pRef == null) {
throw Exception(
"\n\n'$ref' is not a valid component parameter reference\n",
);
}
_checkReferenceTypes(ref, pRef, this);
return pRef.copyWith(description: description ?? pRef.description);
}