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