DocumentStatusMessage.fromJson constructor
Create a snapshot message from a JSON map
Implementation
factory DocumentStatusMessage.fromJson(Map<String, dynamic> json) {
return DocumentStatusMessage(
snapshot: json['snapshot'] != null
? _decodeSnapshot(json['snapshot'] as String)
: null,
documentId: json['documentId'] as String,
changes: json['changes'] != null
? (json['changes'] as List<dynamic>)
.map((c) => _decodeChange(c as String))
.toList()
: null,
versionVector: _decodeVersionVector(json['versionVector'] as String),
);
}