ChatDocument.fromJson constructor

ChatDocument.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ChatDocument.fromJson(Map<String, dynamic> json) {
  return ChatDocument(
    sourceUrl: json['sourceUrl'] ?? '',
    id: json['id'] ?? '',
  );
}