OpenAPILicense constructor
OpenAPILicense({})
Creates an OpenAPI license object.
Implementation
factory OpenAPILicense({
required String name,
String? identifier,
String? url,
Map<String, Object?>? extensions,
}) {
_validateExclusiveFields(
identifier: identifier,
url: url,
scope: 'OpenAPILicense',
);
return OpenAPILicense._({
'name': name,
'identifier': ?identifier,
'url': ?url,
...?prefixExtensions(extensions),
});
}