23 lines
479 B
Dart
23 lines
479 B
Dart
|
class APIError {
|
||
|
final String success;
|
||
|
final String error;
|
||
|
final String errhighlight;
|
||
|
final String message;
|
||
|
|
||
|
const APIError({
|
||
|
required this.success,
|
||
|
required this.error,
|
||
|
required this.errhighlight,
|
||
|
required this.message,
|
||
|
});
|
||
|
|
||
|
factory APIError.fromJson(Map<String, dynamic> json) {
|
||
|
return APIError(
|
||
|
success: json['success'],
|
||
|
error: json['error'],
|
||
|
errhighlight: json['errhighlight'],
|
||
|
message: json['message'],
|
||
|
);
|
||
|
}
|
||
|
}
|