INFRA: Set Up Project.
This commit is contained in:
27
lib/models/vendor_category_model.dart
Normal file
27
lib/models/vendor_category_model.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
class VendorCategoryModel {
|
||||
List<dynamic>? reviewAttributes;
|
||||
String? photo;
|
||||
String? description;
|
||||
String? id;
|
||||
String? title;
|
||||
|
||||
VendorCategoryModel({this.reviewAttributes, this.photo, this.description, this.id, this.title});
|
||||
|
||||
VendorCategoryModel.fromJson(Map<String, dynamic> json) {
|
||||
reviewAttributes = json['review_attributes'] ?? [];
|
||||
photo = json['photo'] ?? "";
|
||||
description = json['description'] ?? '';
|
||||
id = json['id'] ?? "";
|
||||
title = json['title'] ?? "";
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['review_attributes'] = reviewAttributes;
|
||||
data['photo'] = photo;
|
||||
data['description'] = description;
|
||||
data['id'] = id;
|
||||
data['title'] = title;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user