RelayPushMessage.fromJson constructor

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

Create a push message from a JSON map

Implementation

factory RelayPushMessage.fromJson(Map<String, dynamic> json) {
  return RelayPushMessage(
    documentId: json['documentId'] as String,
    changes: (json['changes'] as List<dynamic>).cast<String>(),
  );
}