toModel method

  1. @override
Model toModel()
override

Converts the instance to a Model.

Implementation

@override
Model toModel() => Model(
  id: id,
  userId: userId,
  data: {
    _dataKey: data,
    _createdAtKey: createdAt.toString(),
  },
);