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