ResourceDescriptor constructor

ResourceDescriptor({
  1. String? type,
  2. Iterable<String>? pattern,
  3. String? nameField,
  4. ResourceDescriptor_History? history,
  5. String? plural,
  6. String? singular,
})

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;
}