TargetCrashedEvent.fromJson constructor

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

Implementation

factory TargetCrashedEvent.fromJson(Map<String, dynamic> json) {
  return TargetCrashedEvent(
    targetId: TargetID.fromJson(json['targetId'] as String),
    status: json['status'] as String,
    errorCode: json['errorCode'] as int,
  );
}