EventBody.fromJson constructor
Implementation
factory EventBody.fromJson(String type, Map<String, dynamic> json) {
switch (type) {
case ERROR:
return ErrorEventBody.fromJson(json);
case LC_EVENT:
return LcEventEventBody.fromJson(json);
case STATS:
return StatsEventBody.fromJson(json);
case DEBUG_RULE_NODE:
return DebugRuleNodeEventBody.fromJson(json);
case DEBUG_RULE_CHAIN:
return DebugRuleChainEventBody.fromJson(json);
default:
return RawEventBody.fromJson(json);
}
}