@override Object toJson() => { 'name': name, if (outputConfig case final outputConfig?) 'outputConfig': outputConfig.toJson(), };