RunError.fromJson constructor

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

Creates a RunError from JSON.

Implementation

factory RunError.fromJson(Map<String, dynamic> json) {
  return RunError(
    code: json['code'] as String,
    message: json['message'] as String,
  );
}