GetLayoutMetricsResult.fromJson constructor

GetLayoutMetricsResult.fromJson(
  1. Map<String, dynamic> json
)

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>),
  );
}