SimpleCloudNotifier/flutter/lib/models/api_error.dart

23 lines
479 B
Dart
Raw Normal View History

2024-05-25 18:09:39 +02:00
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'],
);
}
}