toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': _id,
    'title': title,
    'checked': checked == true ? 1 : 0,
    'items': items.map((e) => e.toJson()).toList(),
  };
}