DocumentStatusRequestMessage.fromJson constructor

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

Create a snapshot request message from a JSON map

Implementation

factory DocumentStatusRequestMessage.fromJson(Map<String, dynamic> json) {
  return DocumentStatusRequestMessage(
    version: (json['version'] as List<dynamic>)
        .map((e) => OperationId.parse(e as String))
        .toSet(),
    documentId: json['documentId'] as String,
  );
}