Initial draft
This commit is contained in:
20
lib/dto/contact_person.dart
Normal file
20
lib/dto/contact_person.dart
Normal file
@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user