core.Map<core.String, core.dynamic> toJson() => { if (variantConfig != null) 'variantConfig': variantConfig!, };