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

21 lines
547 B
Dart

import 'package:json_annotation/json_annotation.dart';
part 'contact_person.g.dart';
@JsonSerializable(fieldRename: FieldRename.snake)
class ContactPersonDTO {
ContactPersonDTO(
{required this.name,
required this.salutation,
required this.phoneNo,
required this.mobileNo});
String name;
String salutation;
String phoneNo;
String mobileNo;
factory ContactPersonDTO.fromJson(Map<String, dynamic> json) => _$ContactPersonDTOFromJson(json);
Map<dynamic, dynamic> toJson() => _$ContactPersonDTOToJson(this);
}