Viewport.fromJson constructor
Implementation
factory Viewport.fromJson(Map<String, dynamic> json) {
return Viewport(
width: json['width'],
height: json['height'],
deviceScaleFactor: json['deviceScaleFactor'],
isMobile: json['isMobile'],
isLandscape: json['isLandscape'],
hasTouch: json['hasTouch'],
);
}