toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'stickyBoxRect': stickyBoxRect.toJson(),
    'containingBlockRect': containingBlockRect.toJson(),
    if (nearestLayerShiftingStickyBox != null)
      'nearestLayerShiftingStickyBox':
          nearestLayerShiftingStickyBox!.toJson(),
    if (nearestLayerShiftingContainingBlock != null)
      'nearestLayerShiftingContainingBlock':
          nearestLayerShiftingContainingBlock!.toJson(),
  };
}