Modelable.fromModel constructor

Modelable.fromModel(
  1. Model model
)

Creates an instance from a Model.

Implementation

Modelable.fromModel(Model model)
    : id = model.id,
      userId = model.userId ?? "",
      invalid = false;