CameraView.fromJson constructor

CameraView.fromJson(
  1. Map<String, dynamic> json, [
  2. Map<String, dynamic>? rootJson
])

Implementation

CameraView.fromJson(Map<String,dynamic> json, [Map<String,dynamic>? rootJson]){
  enabled = json['enabled'] ?? true;
  fullWidth = (json['fullWidth'] ?? 1).toDouble();
  fullHeight = (json['fullHeight'] ?? 1).toDouble();
  offsetX = (json['offsetX'] ?? 0).toDouble();
  offsetY = (json['offsetY'] ?? 0).toDouble();
  width = (json['width'] ?? 1).toDouble();
  height = (json['height'] ?? 1).toDouble();
}