Document constructor

Document({
  1. String? text,
  2. String? model,
  3. Iterable<MapEntry<String, Value>>? options,
})

Implementation

factory Document({
  $core.String? text,
  $core.String? model,
  $core.Iterable<$core.MapEntry<$core.String, $11.Value>>? options,
}) {
  final $result = create();
  if (text != null) {
    $result.text = text;
  }
  if (model != null) {
    $result.model = model;
  }
  if (options != null) {
    $result.options.addEntries(options);
  }
  return $result;
}