toJson method
Implementation
Map toJson() {
return {
'offsetTop': offsetTop,
'pageScaleFactor': pageScaleFactor,
'deviceWidth': deviceWidth,
'deviceHeight': deviceHeight,
'scrollOffsetX': scrollOffsetX,
'scrollOffsetY': scrollOffsetY,
'timestamp': timestamp
};
}