RemoteView.fromJson constructor
RemoteView.fromJson(
- Map<String, dynamic> elementJson,
- Map<String, dynamic>? navigationContextJson
)
Implementation
factory RemoteView.fromJson(Map<String, dynamic> elementJson, Map<String, dynamic>? navigationContextJson) {
return RemoteView(
elementJson["url"],
fallback: elementJson.containsKey("fallback") ? BeagleUIElement(elementJson["fallback"]) : null,
httpAdditionalData: elementJson.containsKey("httpAdditionalData")
? HttpAdditionalData.fromJson(elementJson["httpAdditionalData"])
: null,
navigationContext: navigationContextJson != null ? NavigationContext.fromJson(navigationContextJson) : null,
);
}