@override Object toJson() { return { 'name': name, if (outputConfig != null) 'outputConfig': outputConfig!.toJson(), }; }