toModel method

  1. @override
Model toModel()
override

Implementation

@override
Model toModel() {
  return Model(
    name: description().title,
    icon: IconPackNames.mdi_floor_plan,
    fields: [
      [
        fieldToModelName,
        fieldToModelId,
      ],
      [
        fieldToModelSort,
        fieldToModelShowInList,
        fieldToModelIsRequired,
      ],
    ],
  );
}