ResourceDescriptor constructor
ResourceDescriptor({})
Implementation
factory ResourceDescriptor({
$core.String? type,
$core.Iterable<$core.String>? pattern,
$core.String? nameField,
ResourceDescriptor_History? history,
$core.String? plural,
$core.String? singular,
}) {
final _result = create();
if (type != null) {
_result.type = type;
}
if (pattern != null) {
_result.pattern.addAll(pattern);
}
if (nameField != null) {
_result.nameField = nameField;
}
if (history != null) {
_result.history = history;
}
if (plural != null) {
_result.plural = plural;
}
if (singular != null) {
_result.singular = singular;
}
return _result;
}