toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'renderTime': renderTime.toJson(),
    'loadTime': loadTime.toJson(),
    'size': size,
    if (elementId != null) 'elementId': elementId,
    if (url != null) 'url': url,
    if (nodeId != null) 'nodeId': nodeId!.toJson(),
  };
}