GetLayoutMetricsResult.fromJson constructor
Implementation
factory GetLayoutMetricsResult.fromJson(Map<String, dynamic> json) {
return GetLayoutMetricsResult(
cssLayoutViewport: LayoutViewport.fromJson(
json['cssLayoutViewport'] as Map<String, dynamic>),
cssVisualViewport: VisualViewport.fromJson(
json['cssVisualViewport'] as Map<String, dynamic>),
cssContentSize:
dom.Rect.fromJson(json['cssContentSize'] as Map<String, dynamic>),
);
}