Files
Holzleitner-Lieferservice-App/lib/dto/scan_response.dart
Dennis Nemec b19a6e1cd4 Initial draft
2025-09-20 16:14:06 +02:00

19 lines
506 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'scan_response.g.dart';
@JsonSerializable(fieldRename: FieldRename.snake)
class ScanResponseDTO {
ScanResponseDTO(
{required this.message, required this.succeeded, required this.noteId});
final bool succeeded;
final String message;
final String? noteId;
factory ScanResponseDTO.fromJson(Map<String, dynamic> json) =>
_$ScanResponseDTOFromJson(json);
Map<dynamic, dynamic> toJson() => _$ScanResponseDTOToJson(this);
}