toJson method

Map<String, dynamic> toJson()

Converts the CheckItem to JSON

Implementation

Map<String, dynamic> toJson() {
  return {'id': id, 'item': name, 'value': value, 'isChecked': isChecked};
}