toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "_id": id == null ? null : id,
      "title": title == null ? null : title,
      "benefits": benefits == null ? null : benefits,
      "iconUrl": iconUrl == null ? null : iconUrl,
    };