ApiError.fromJson constructor

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

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']);
}