Map<String, dynamic> toJson() { return { 'id': id, 'type': type, 'title': title, 'content': content, if (acceptedAt != null) 'acceptedAt': acceptedAt!.toIso8601String(), }; }