toJson method

String toJson()

Implementation

String toJson() {
  return jsonEncode({
    'borderBoxSize': {'blockSize': borderBoxSize.height, 'inlineSize': borderBoxSize.width},
    'contentBoxSize': {'blockSize': contentBoxSize.height, 'inlineSize': contentBoxSize.width},
    'contentRect': {'x': 0, 'y': 0, 'width': contentRect.width, 'height': contentRect.height},
  });
}