fromCompactJson static method
Creates an Initiator object from a compact JSON map.
The json
parameter is a compact JSON map representing the Initiator object.
Implementation
static Initiator fromCompactJson(Map<String, dynamic> json) {
try {
final initiator =
Initiator(serviceEndpoint: json["se"], socketId: json["sid"]);
return initiator;
} catch (e) {
rethrow;
}
}