fromJson static method

DashboardView? fromJson(
  1. Json json
)

Finds the right view in allViews that matches the given JSON.

Implementation

static DashboardView? fromJson(Json json) => allViews
  .firstWhereOrNull((view) => view.name == json["name"] && view.key?.value == json["cameraName"]);