KnotError.fromJson constructor

KnotError.fromJson(
  1. dynamic json
)

Factory method to create a KnotError from a json map.

Implementation

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