ErrorEvent.fromJson constructor

ErrorEvent.fromJson(
  1. Map<String, dynamic> json
)

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,
  );
}