Document constructor

Document({
  1. String? id,
  2. Map<String, Value>? data,
  3. String? collection,
})

Implementation

factory Document({
  $core.String? id,
  $core.Map<$core.String, Value>? data,
  $core.String? collection,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (data != null) {
    _result.data.addAll(data);
  }
  if (collection != null) {
    _result.collection = collection;
  }
  return _result;
}