Serialize to map for storage
Map<String, dynamic> toJson() { return { 'afterId': afterId.toString(), }; }