toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      "id": id,
      "createdAt": createdAt.toIso8601String(),
      "updatedAt": updatedAt.toIso8601String(),
      "jsonData": jsonData.toMap(),
      "tags": List<dynamic>.from(tags.map((int x) => x)),
      "title": title,
      "description": description,
      "categoryId": categoryId,
      "category": category?.toMap(),
    };