Presentation.fromJson constructor
Creates a Properties from its RWPM JSON representation.
Implementation
factory Presentation.fromJson(Map<String, dynamic>? json) {
if (json == null) {
return Presentation();
}
return Presentation(
clipped: json.optNullableBoolean("clipped"),
continuous: json.optNullableBoolean("continuous"),
fit: PresentationFit.from(json.optString("fit")),
orientation:
PresentationOrientation.from(json.optString("orientation")),
overflow: PresentationOverflow.from(json.optString("overflow")),
spread: PresentationSpread.from(json.optString("spread")),
layout: EpubLayout.from(json.optString("layout")));
}