pd-android-app/lib/models/added_by_model.dart
saritabirare 215877afc4 1)Order Place api Integration
2)Confirm Order api Integration
3)get Oder api Integration
2024-09-06 14:39:40 +05:30

23 lines
394 B
Dart

class AddedBy {
String id;
String name;
AddedBy({
required this.id,
required this.name,
});
factory AddedBy.fromJson(Map<String, dynamic> json) => AddedBy(
id: json["_id"],
name: json["name"],
);
Map<String, dynamic> toJson() => {
"_id": id,
"name": name,
};
@override
String toString() {
return 'AddedBy(id: $id, brandName: $AddedBy,)';
}
}