KnotError.fromJson constructor

KnotError.fromJson(
  1. dynamic json
)

Implementation

factory KnotError.fromJson(dynamic json) {
   return KnotError(
       errorCode: json["error"],
       message: json["message"],
       type: json["type"],
   );
}