toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      _title: title,
      _id: id,
      _text: text,
      _type: type,
      _url: contentUrl,
      _mediaUrl: mediaUrl,
      _imageUrl: imageUrl,
      _html: htmlText,
      _shareable: isShareable,
      _read: isRead,
      _createdAt: createdAt.toIso8601String(),
      _attributes: attributes
    };