boolFromModel function

bool boolFromModel(
  1. Model model
)

Creates a bool from a Model. If unsucessful, will return false.

Implementation

bool boolFromModel(Model model) =>
    bool.parse(model.data["data"]?.toString() ?? "false");