FirebaseMessageDocument.fromJson constructor

FirebaseMessageDocument.fromJson(
  1. Map<String, dynamic> json,
  2. String? id
)

Constructs a FirebaseMessageDocument from JSON.

Implementation

FirebaseMessageDocument.fromJson(Map<String, dynamic> json, this.id)
    : sender = json['sender'],
      text = json['text'],
      imageUrl = json['image_url'],
      timestamp = json['timestamp'];