toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['width'] = width;
map['height'] = height;
if (deviceScaleFactor != null) {
map['deviceScaleFactor'] = deviceScaleFactor;
}
if (isMobile != null) {
map['isMobile'] = isMobile;
}
if (isLandscape != null) {
map['isLandscape'] = isLandscape;
}
if (hasTouch != null) {
map['hasTouch'] = hasTouch;
}
return map;
}