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