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