toMetaJson method
Serializes the pivot record into a metadata-oriented JSON map.
Includes the primary key and timestamp metadata.
Example:
final meta = pivot.toMetaJson();
print(meta['id']);
Implementation
Map<String, dynamic> toMetaJson() {
return {"id": id, "created_at": createdAt, "updated_at": updatedAt};
}