import 'package:hl_lieferservice/dto/basic_response.dart';
import 'package:hl_lieferservice/dto/note.dart';
import 'package:json_annotation/json_annotation.dart';

part 'note_add_response.g.dart';

@JsonSerializable(fieldRename: FieldRename.snake)
class NoteAddResponseDTO extends BasicResponseDTO {
  NoteAddResponseDTO(
      {required this.note, required super.succeeded, required super.message});

  final NoteDTO? note;

  factory NoteAddResponseDTO.fromJson(Map<String, dynamic> json) => _$NoteAddResponseDTOFromJson(json);
  Map<dynamic, dynamic> toJson() => _$NoteAddResponseDTOToJson(this);
}