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