added frontend
This commit is contained in:
15
hartmann-foto-documentation-frontend/lib/dto/base_dto.dart
Normal file
15
hartmann-foto-documentation-frontend/lib/dto/base_dto.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
final class ErrorDto {
|
||||
int error;
|
||||
String message;
|
||||
|
||||
ErrorDto(this.error, this.message);
|
||||
|
||||
ErrorDto.fromJson(Map<String, dynamic> json)
|
||||
: error = json['error'] as int,
|
||||
message = json['message'];
|
||||
}
|
||||
|
||||
abstract interface class DtoMapAble {
|
||||
Map<String, dynamic> toMap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user