toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
  "id": id,
  "title": title,
  "description": description,
  "photo": photo,
  "order": order,
  "created_at": createdAt?.toIso8601String(),
};