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