Map<String, dynamic> toJSON() { String idKey = Platform.isAndroid ? 'id' : 'actionId'; return {idKey: actionId, 'title': title}; }