toJson method

Map<String, dynamic> toJson()

Implementation

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