VisualViewport.fromJson constructor
Implementation
factory VisualViewport.fromJson(Map<String, dynamic> json) {
return VisualViewport(
offsetX: json['offsetX'] as num,
offsetY: json['offsetY'] as num,
pageX: json['pageX'] as num,
pageY: json['pageY'] as num,
clientWidth: json['clientWidth'] as num,
clientHeight: json['clientHeight'] as num,
scale: json['scale'] as num,
zoom: json.containsKey('zoom') ? json['zoom'] as num : null,
);
}