Map<String, dynamic> toJson() { return { 'message': messageData.toJson(), 'finish_reason': finishReason, }; }