numFromModel function

num numFromModel(
  1. Model model
)

Creates a num from a Model. If unsucessful, will return -1.

Implementation

num numFromModel(Model model) =>
    num.parse(model.data["data"]?.toString() ?? "-1");