ApiError.fromJson constructor

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

Creates a ApiError instance from a JSON representation.

Implementation

ApiError.fromJson(Map<String, dynamic> json) {
  code = json['code'];
  message = json['message'];
  description = json['description'];
  dateTime =
      json['dateTime'] == null ? null : DateTime.parse(json['dateTime']);
  innerError = ApiError.fromJson(json['innerError']);
}