toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'offsetTop': offsetTop,
'pageScaleFactor': pageScaleFactor,
'deviceWidth': deviceWidth,
'deviceHeight': deviceHeight,
'scrollOffsetX': scrollOffsetX,
'scrollOffsetY': scrollOffsetY,
if (timestamp != null) 'timestamp': timestamp!.toJson(),
};
}