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