LocalView.fromJson constructor

LocalView.fromJson(
  1. Map<String, dynamic> elementJson,
  2. Map<String, dynamic>? navigationContextJson
)

Implementation

factory LocalView.fromJson(Map<String, dynamic> elementJson, Map<String, dynamic>? navigationContextJson) {
  return LocalView(
    BeagleUIElement(elementJson["screen"]),
    navigationContextJson != null ? NavigationContext.fromJson(navigationContextJson) : null,
  );
}