Map<String, dynamic> toMap() { return TaskModelMapper.ensureInitialized() .encodeMap<TaskModel>(this as TaskModel); }