toModel method

  1. @override
Model toModel()
override

Implementation

@override
Model toModel() {
  return Model(
    name: description().title,
    icon: IconPackNames.flu_calendar_clock_filled,
    fields: [
      [
        fieldToModelName,
        fieldToModelId,
      ],
      [
        fieldToModelSort,
        fieldToModelShowInList,
      ],
      [
        fieldToModelIsRequired,
        BoolField(id: 'isCreatedAtField', name: 'Is createdAt field?'),
        BoolField(id: 'isUpdatedAtField', name: 'Is updatedAt field?'),
      ],
    ],
  );
}