ErrorEvent.fromJson constructor
Factory constructor for creating an ErrorEvent
instance from a JSON map.
Implementation
factory ErrorEvent.fromJson(Map<String, dynamic> json) {
return ErrorEvent(
testID: json['testID'] as int,
error: json['error'] as String,
stackTrace: json['stackTrace'] as String,
isFailure: json['isFailure'] as bool,
);
}