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