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