Updated Code
parent
6acbcc7e1d
commit
23ebbcb74b
@ -1,32 +1,32 @@
|
||||
class ProviderCategoryModel {
|
||||
int? id;
|
||||
String? categoryName;
|
||||
String? categoryNameN;
|
||||
String? serviceCategoryIconUrl;
|
||||
String? serviceCategoryImageUrl;
|
||||
bool? isActive;
|
||||
bool? isSelected;
|
||||
|
||||
ProviderCategoryModel({this.id, this.categoryName, this.categoryNameN, this.serviceCategoryIconUrl, this.serviceCategoryImageUrl, this.isActive, this.isSelected = false});
|
||||
|
||||
ProviderCategoryModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
categoryName = json['categoryName'];
|
||||
categoryNameN = json['categoryNameN'];
|
||||
serviceCategoryIconUrl = json['serviceCategoryIconUrl'];
|
||||
serviceCategoryImageUrl = json['serviceCategoryImageUrl'];
|
||||
isActive = json['isActive'];
|
||||
isSelected = false;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['id'] = id;
|
||||
data['categoryName'] = categoryName;
|
||||
data['categoryNameN'] = categoryNameN;
|
||||
data['serviceCategoryIconUrl'] = serviceCategoryIconUrl;
|
||||
data['serviceCategoryImageUrl'] = serviceCategoryImageUrl;
|
||||
data['isActive'] = isActive;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
// class ProviderCategoryModel {
|
||||
// int? id;
|
||||
// String? categoryName;
|
||||
// String? categoryNameN;
|
||||
// String? serviceCategoryIconUrl;
|
||||
// String? serviceCategoryImageUrl;
|
||||
// bool? isActive;
|
||||
// bool? isSelected;
|
||||
//
|
||||
// ProviderCategoryModel({this.id, this.categoryName, this.categoryNameN, this.serviceCategoryIconUrl, this.serviceCategoryImageUrl, this.isActive, this.isSelected = false});
|
||||
//
|
||||
// ProviderCategoryModel.fromJson(Map<String, dynamic> json) {
|
||||
// id = json['id'];
|
||||
// categoryName = json['categoryName'];
|
||||
// categoryNameN = json['categoryNameN'];
|
||||
// serviceCategoryIconUrl = json['serviceCategoryIconUrl'];
|
||||
// serviceCategoryImageUrl = json['serviceCategoryImageUrl'];
|
||||
// isActive = json['isActive'];
|
||||
// isSelected = false;
|
||||
// }
|
||||
//
|
||||
// Map<String, dynamic> toJson() {
|
||||
// final Map<String, dynamic> data = <String, dynamic>{};
|
||||
// data['id'] = id;
|
||||
// data['categoryName'] = categoryName;
|
||||
// data['categoryNameN'] = categoryNameN;
|
||||
// data['serviceCategoryIconUrl'] = serviceCategoryIconUrl;
|
||||
// data['serviceCategoryImageUrl'] = serviceCategoryImageUrl;
|
||||
// data['isActive'] = isActive;
|
||||
// return data;
|
||||
// }
|
||||
// }
|
||||
|
||||
@ -1,65 +1,65 @@
|
||||
class ProviderServiceModel {
|
||||
int? id;
|
||||
String? description;
|
||||
String? descriptionN;
|
||||
String? serviceIconUrl;
|
||||
String? serviceImageUrl;
|
||||
int? serviceCategoryID;
|
||||
bool? isActive;
|
||||
String? categoryName;
|
||||
bool? ispartial;
|
||||
int? appointmentPricePercentage;
|
||||
int? refundAmountPercentage;
|
||||
bool? isSelected;
|
||||
|
||||
ProviderServiceModel(
|
||||
{this.id,
|
||||
this.description,
|
||||
this.descriptionN,
|
||||
this.serviceIconUrl,
|
||||
this.serviceImageUrl,
|
||||
this.serviceCategoryID,
|
||||
this.isActive,
|
||||
this.categoryName,
|
||||
this.ispartial,
|
||||
this.appointmentPricePercentage,
|
||||
this.refundAmountPercentage,
|
||||
this.isSelected = false,
|
||||
});
|
||||
|
||||
ProviderServiceModel.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
description = json['description'];
|
||||
descriptionN = json['descriptionN'];
|
||||
serviceIconUrl = json['serviceIconUrl'];
|
||||
serviceImageUrl = json['serviceImageUrl'];
|
||||
serviceCategoryID = json['serviceCategoryID'];
|
||||
isActive = json['isActive'];
|
||||
categoryName = json['categoryName'];
|
||||
ispartial = json['ispartial'];
|
||||
appointmentPricePercentage = json['appointmentPricePercentage'];
|
||||
refundAmountPercentage = json['refundAmountPercentage'];
|
||||
isSelected = false;
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
data['id'] = id;
|
||||
data['description'] = description;
|
||||
data['descriptionN'] = descriptionN;
|
||||
data['serviceIconUrl'] = serviceIconUrl;
|
||||
data['serviceImageUrl'] = serviceImageUrl;
|
||||
data['serviceCategoryID'] = serviceCategoryID;
|
||||
data['isActive'] = isActive;
|
||||
data['categoryName'] = categoryName;
|
||||
data['ispartial'] = ispartial;
|
||||
data['appointmentPricePercentage'] = appointmentPricePercentage;
|
||||
data['refundAmountPercentage'] = refundAmountPercentage;
|
||||
return data;
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'ProviderServiceModel{id: $id, description: $description, descriptionN: $descriptionN, serviceIconUrl: $serviceIconUrl, serviceImageUrl: $serviceImageUrl, serviceCategoryID: $serviceCategoryID, isActive: $isActive, categoryName: $categoryName, ispartial: $ispartial, appointmentPricePercentage: $appointmentPricePercentage, refundAmountPercentage: $refundAmountPercentage, isSelected: $isSelected}';
|
||||
}
|
||||
}
|
||||
// class ProviderServiceModel {
|
||||
// int? id;
|
||||
// String? description;
|
||||
// String? descriptionN;
|
||||
// String? serviceIconUrl;
|
||||
// String? serviceImageUrl;
|
||||
// int? serviceCategoryID;
|
||||
// bool? isActive;
|
||||
// String? categoryName;
|
||||
// bool? ispartial;
|
||||
// int? appointmentPricePercentage;
|
||||
// int? refundAmountPercentage;
|
||||
// bool? isSelected;
|
||||
//
|
||||
// ProviderServiceModel(
|
||||
// {this.id,
|
||||
// this.description,
|
||||
// this.descriptionN,
|
||||
// this.serviceIconUrl,
|
||||
// this.serviceImageUrl,
|
||||
// this.serviceCategoryID,
|
||||
// this.isActive,
|
||||
// this.categoryName,
|
||||
// this.ispartial,
|
||||
// this.appointmentPricePercentage,
|
||||
// this.refundAmountPercentage,
|
||||
// this.isSelected = false,
|
||||
// });
|
||||
//
|
||||
// ProviderServiceModel.fromJson(Map<String, dynamic> json) {
|
||||
// id = json['id'];
|
||||
// description = json['description'];
|
||||
// descriptionN = json['descriptionN'];
|
||||
// serviceIconUrl = json['serviceIconUrl'];
|
||||
// serviceImageUrl = json['serviceImageUrl'];
|
||||
// serviceCategoryID = json['serviceCategoryID'];
|
||||
// isActive = json['isActive'];
|
||||
// categoryName = json['categoryName'];
|
||||
// ispartial = json['ispartial'];
|
||||
// appointmentPricePercentage = json['appointmentPricePercentage'];
|
||||
// refundAmountPercentage = json['refundAmountPercentage'];
|
||||
// isSelected = false;
|
||||
// }
|
||||
//
|
||||
// Map<String, dynamic> toJson() {
|
||||
// final Map<String, dynamic> data = <String, dynamic>{};
|
||||
// data['id'] = id;
|
||||
// data['description'] = description;
|
||||
// data['descriptionN'] = descriptionN;
|
||||
// data['serviceIconUrl'] = serviceIconUrl;
|
||||
// data['serviceImageUrl'] = serviceImageUrl;
|
||||
// data['serviceCategoryID'] = serviceCategoryID;
|
||||
// data['isActive'] = isActive;
|
||||
// data['categoryName'] = categoryName;
|
||||
// data['ispartial'] = ispartial;
|
||||
// data['appointmentPricePercentage'] = appointmentPricePercentage;
|
||||
// data['refundAmountPercentage'] = refundAmountPercentage;
|
||||
// return data;
|
||||
// }
|
||||
//
|
||||
// @override
|
||||
// String toString() {
|
||||
// return 'ProviderServiceModel{id: $id, description: $description, descriptionN: $descriptionN, serviceIconUrl: $serviceIconUrl, serviceImageUrl: $serviceImageUrl, serviceCategoryID: $serviceCategoryID, isActive: $isActive, categoryName: $categoryName, ispartial: $ispartial, appointmentPricePercentage: $appointmentPricePercentage, refundAmountPercentage: $refundAmountPercentage, isSelected: $isSelected}';
|
||||
// }
|
||||
// }
|
||||
|
||||
Loading…
Reference in New Issue