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