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