BaseLog.fromJson constructor
BaseLog.fromJson(
- Json json
Implementation
factory BaseLog.fromJson(Json json) {
switch (json['type']) {
case 'message':
return Message.fromJson(json);
case 'screenEvent':
return ScreenEvent.fromJson(json);
default:
throw Exception('Unknown log type');
}
}