fbmobile/lib/core/models/rest/rest_error.dart
2021-02-02 15:33:23 +01:00

23 lines
475 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'rest_error.g.dart';
@JsonSerializable()
class RestError {
final String status;
final String message;
@JsonKey(name: "error_id")
final String errorId;
RestError({
this.status,
this.message,
this.errorId,
}); // JSON Init
factory RestError.fromJson(Map<String, dynamic> json) => _$RestErrorFromJson(json);
// JSON Export
Map<String, dynamic> toJson() => _$RestErrorToJson(this);
}