Map<String, dynamic> toMap() { return <String, dynamic>{ 'allowedExitCodes': allowedExitCodes, 'artifactId': artifactId, 'flags': flags, }; }