toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
...super.data,
if ($meta != null) '_meta': $meta!.toMap(),
if (nextCursor != null) 'nextCursor': nextCursor,
'tasks': tasks.map((e) => e.toMap()).toList(),
};
}