toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "id": id,
      "header": header,
      "content": content,
      "message_id": messageId,
      "order_id": orderId,
      "seen": seen,
      "created_at": createdAt?.toIso8601String(),
    };