toInsertJson method

Map<String, dynamic> toInsertJson()

JSON for insert — omits id so the DB generates it via gen_random_uuid().

Implementation

Map<String, dynamic> toInsertJson() {
  final json = toJson();
  json.remove('id');
  return json;
}