ScreencastFrameMetadata.fromJson constructor
ScreencastFrameMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ScreencastFrameMetadata.fromJson(Map<String, dynamic> json) {
return ScreencastFrameMetadata(
offsetTop: json['offsetTop'] as num,
pageScaleFactor: json['pageScaleFactor'] as num,
deviceWidth: json['deviceWidth'] as num,
deviceHeight: json['deviceHeight'] as num,
scrollOffsetX: json['scrollOffsetX'] as num,
scrollOffsetY: json['scrollOffsetY'] as num,
timestamp:
json.containsKey('timestamp')
? network.TimeSinceEpoch.fromJson(json['timestamp'] as num)
: null,
);
}