rd-android-app/lib/models/brand_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

27 lines
468 B
Dart

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