toModel method

  1. @override
Model toModel()
override

Implementation

@override
Model toModel() {
  final Model entity = super.toModel();
  return entity.copyWith(
    fields: [
      [
        fieldToModelName,
        fieldToModelId,
        fieldToModelMaxLines,
      ],
      [
        fieldToModelSort,
        fieldToModelShowInList,
        fieldToModelIsRequired,
      ],
    ],
  );
}