LayoutViewport.fromJson constructor

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

Implementation

factory LayoutViewport.fromJson(Map<String, dynamic> json) {
  return LayoutViewport(
    pageX: json['pageX'] as int,
    pageY: json['pageY'] as int,
    clientWidth: json['clientWidth'] as int,
    clientHeight: json['clientHeight'] as int,
  );
}