UDocDestination.fromJson constructor
Implementation
factory UDocDestination.fromJson(Map<String, Object?> json) => UDocDestination(
pageIndex: (json["pageIndex"] as num?)?.toInt() ?? 0,
left: (json["left"] as num?)?.toDouble(),
top: (json["top"] as num?)?.toDouble(),
zoom: (json["zoom"] as num?)?.toDouble(),
fitMode: _fitFromName(json["fitMode"] as String?),
anchor: json["anchor"] as String?,
);