Error.fromJson constructor

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

Creates a Error instance from a JSON representation.

Implementation

Error.fromJson(Map<String, dynamic> json) {
  code = json['code'];
  message = json['message'];
  description = json['description'];
  innerError = ErrorDetails.fromJson(json['innerError']);
}