toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "type": type,
      "location": location?.toJson(),
      "content": content?.toJson(),
      "media": media?.toJson(),
      "design": design?.toJson(),
      "hasActionButton": hasActionButton,
      "actionButton": actionButton?.toJson(),
      "_id": id,
    };