Document constructor

Document({
  1. String? name,
  2. Map<String, Value>? fields,
  3. Timestamp? createTime,
  4. Timestamp? updateTime,
})

Implementation

factory Document({
  $core.String? name,
  $core.Map<$core.String, Value>? fields,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (fields != null) {
    $result.fields.addAll(fields);
  }
  if (createTime != null) {
    $result.createTime = createTime;
  }
  if (updateTime != null) {
    $result.updateTime = updateTime;
  }
  return $result;
}