Log constructor

Log({
  1. String? id,
  2. Iterable<RawRecordWithId>? records,
})

Implementation

factory Log({
  $core.String? id,
  $core.Iterable<RawRecordWithId>? records,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (records != null) result.records.addAll(records);
  return result;
}