toJson method

Map<String, dynamic> toJson()

Converts the FirebaseMessageDocument to JSON format.

Implementation

Map<String, dynamic> toJson() => {
      'sender': sender,
      'text': text,
      'image_url': imageUrl,
      'timestamp': timestamp,
    };