models updates -> 3.13.6

merge-update-with-lab-changes
devamirsaleemahmad 2 years ago
parent 2a4059fd66
commit 511c9788da

@ -1,36 +1,34 @@
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesResponseModel.dart'; import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesResponseModel.dart';
class PackagesCartItemsResponseModel { class PackagesCartItemsResponseModel {
int _quantity; int? _quantity;
set quantity(int value) { set quantity(int value) {
_quantity = value; _quantity = value;
} }
String _shoppingCartType; String? _shoppingCartType;
int _productId; int? _productId;
PackagesResponseModel _product; PackagesResponseModel? _product;
int _id; int? _id;
int get quantity => _quantity; int get quantity => _quantity!;
String get shoppingCartType => _shoppingCartType;
int get productId => _productId; String get shoppingCartType => _shoppingCartType!;
PackagesResponseModel get product => _product;
int get id => _id; int get productId => _productId!;
PackagesCartItemsResponseModel({ PackagesResponseModel get product => _product!;
int quantity,
String shoppingCartType, int get id => _id!;
int productId,
PackagesResponseModel product, PackagesCartItemsResponseModel({int? quantity, String? shoppingCartType, int? productId, PackagesResponseModel? product, int? id}) {
int id}){ _quantity = quantity!;
_quantity = quantity;
_shoppingCartType = shoppingCartType; _shoppingCartType = shoppingCartType;
_productId = productId; _productId = productId;
_product = product; _product = product;
_id = id; _id = id;
} }
PackagesCartItemsResponseModel.fromJson(dynamic json) { PackagesCartItemsResponseModel.fromJson(dynamic json) {
_quantity = json["quantity"]; _quantity = json["quantity"];
@ -46,39 +44,37 @@ class PackagesCartItemsResponseModel {
map["shopping_cart_type"] = _shoppingCartType; map["shopping_cart_type"] = _shoppingCartType;
map["product_id"] = _productId; map["product_id"] = _productId;
if (_product != null) { if (_product != null) {
map["product"] = _product.toJson(); map["product"] = _product!.toJson();
} }
map["id"] = _id; map["id"] = _id;
return map; return map;
} }
} }
class Images { class Images {
int _id; int? _id;
int _pictureId; int? _pictureId;
int _position; int? _position;
String _src; String? _src;
dynamic _attachment; dynamic _attachment;
int get id => _id; int get id => _id!;
int get pictureId => _pictureId;
int get position => _position; int get pictureId => _pictureId!;
String get src => _src;
int get position => _position!;
String get src => _src!;
dynamic get attachment => _attachment; dynamic get attachment => _attachment;
Images({ Images({int? id, int? pictureId, int? position, String? src, dynamic attachment}) {
int id,
int pictureId,
int position,
String src,
dynamic attachment}){
_id = id; _id = id;
_pictureId = pictureId; _pictureId = pictureId;
_position = position; _position = position;
_src = src; _src = src;
_attachment = attachment; _attachment = attachment;
} }
Images.fromJson(dynamic json) { Images.fromJson(dynamic json) {
_id = json["id"]; _id = json["id"];
@ -97,25 +93,23 @@ class Images {
map["attachment"] = _attachment; map["attachment"] = _attachment;
return map; return map;
} }
} }
/// language_id : 1 /// language_id : 1
/// localized_name : "Dermatology testing" /// localized_name : "Dermatology testing"
class Localized_names { class Localized_names {
int _languageId; int? _languageId;
String _localizedName; String? _localizedName;
int get languageId => _languageId!;
int get languageId => _languageId; String get localizedName => _localizedName!;
String get localizedName => _localizedName;
Localized_names({ Localized_names({int? languageId, String? localizedName}) {
int languageId,
String localizedName}){
_languageId = languageId; _languageId = languageId;
_localizedName = localizedName; _localizedName = localizedName;
} }
Localized_names.fromJson(dynamic json) { Localized_names.fromJson(dynamic json) {
_languageId = json["language_id"]; _languageId = json["language_id"];
@ -128,5 +122,4 @@ class Localized_names {
map["localized_name"] = _localizedName; map["localized_name"] = _localizedName;
return map; return map;
} }
} }

@ -2,76 +2,76 @@ import 'package:diplomaticquarterapp/generated/json/base/json_convert_content.da
import 'package:diplomaticquarterapp/generated/json/base/json_field.dart'; import 'package:diplomaticquarterapp/generated/json/base/json_field.dart';
class PackagesCategoriesResponseModel with JsonConvert<PackagesCategoriesResponseModel> { class PackagesCategoriesResponseModel with JsonConvert<PackagesCategoriesResponseModel> {
int id; int? id;
String name; String? name;
String namen; String? namen;
@JSONField(name: "localized_names") @JSONField(name: "localized_names")
List<OfferCategoriesResponseModelLocalizedName> localizedNames; List<OfferCategoriesResponseModelLocalizedName>? localizedNames;
dynamic description; dynamic description;
@JSONField(name: "category_template_id") @JSONField(name: "category_template_id")
int categoryTemplateId; int? categoryTemplateId;
@JSONField(name: "meta_keywords") @JSONField(name: "meta_keywords")
String metaKeywords; String? metaKeywords;
@JSONField(name: "meta_description") @JSONField(name: "meta_description")
String metaDescription; String? metaDescription;
@JSONField(name: "meta_title") @JSONField(name: "meta_title")
String metaTitle; String? metaTitle;
@JSONField(name: "parent_category_id") @JSONField(name: "parent_category_id")
int parentCategoryId; int? parentCategoryId;
@JSONField(name: "page_size") @JSONField(name: "page_size")
int pageSize; int? pageSize;
@JSONField(name: "page_size_options") @JSONField(name: "page_size_options")
String pageSizeOptions; String? pageSizeOptions;
@JSONField(name: "price_ranges") @JSONField(name: "price_ranges")
dynamic priceRanges; dynamic priceRanges;
@JSONField(name: "show_on_home_page") @JSONField(name: "show_on_home_page")
bool showOnHomePage; bool? showOnHomePage;
@JSONField(name: "include_in_top_menu") @JSONField(name: "include_in_top_menu")
bool includeInTopMenu; bool? includeInTopMenu;
@JSONField(name: "has_discounts_applied") @JSONField(name: "has_discounts_applied")
dynamic hasDiscountsApplied; dynamic hasDiscountsApplied;
bool published; bool? published;
bool deleted; bool? deleted;
@JSONField(name: "display_order") @JSONField(name: "display_order")
int displayOrder; int? displayOrder;
@JSONField(name: "created_on_utc") @JSONField(name: "created_on_utc")
String createdOnUtc; String? createdOnUtc;
@JSONField(name: "updated_on_utc") @JSONField(name: "updated_on_utc")
String updatedOnUtc; String? updatedOnUtc;
@JSONField(name: "role_ids") @JSONField(name: "role_ids")
List<dynamic> roleIds; List<dynamic>? roleIds;
@JSONField(name: "discount_ids") @JSONField(name: "discount_ids")
List<dynamic> discountIds; List<dynamic>? discountIds;
@JSONField(name: "store_ids") @JSONField(name: "store_ids")
List<dynamic> storeIds; List<dynamic>? storeIds;
OfferCategoriesResponseModelImage image; OfferCategoriesResponseModelImage? image;
@JSONField(name: "se_name") @JSONField(name: "se_name")
String seName; String? seName;
@JSONField(name: "is_leaf") @JSONField(name: "is_leaf")
bool isLeaf; bool? isLeaf;
@override @override
String toString() { String toString() {
if(localizedNames.length == 2){ if(localizedNames!.length == 2){
if(localizedNames.first.languageId == 1) if(localizedNames!.first.languageId == 1)
return localizedNames.first.localizedName ?? name; return localizedNames?.first.localizedName ?? name.toString();
else if(localizedNames.first.languageId == 2) else if(localizedNames?.first.languageId == 2)
return localizedNames.last.localizedName ?? name; return localizedNames?.last.localizedName ?? name.toString();
} }
return name; return name.toString();
} }
} }
class OfferCategoriesResponseModelLocalizedName with JsonConvert<OfferCategoriesResponseModelLocalizedName> { class OfferCategoriesResponseModelLocalizedName with JsonConvert<OfferCategoriesResponseModelLocalizedName> {
@JSONField(name: "language_id") @JSONField(name: "language_id")
int languageId; int? languageId;
@JSONField(name: "localized_name") @JSONField(name: "localized_name")
String localizedName; String? localizedName;
} }
class OfferCategoriesResponseModelImage with JsonConvert<OfferCategoriesResponseModelImage> { class OfferCategoriesResponseModelImage with JsonConvert<OfferCategoriesResponseModelImage> {
String src; String? src;
dynamic thumb; dynamic thumb;
dynamic attachment; dynamic attachment;
} }

@ -29,90 +29,90 @@ import 'PackagesCartItemsResponseModel.dart';
/// id : 76823 /// id : 76823
class PackagesCustomerResponseModel { class PackagesCustomerResponseModel {
List<PackagesCartItemsResponseModel> _shoppingCartItems; List<PackagesCartItemsResponseModel>? _shoppingCartItems;
dynamic _billingAddress; dynamic _billingAddress;
dynamic _shippingAddress; dynamic _shippingAddress;
List<Addresses> _addresses; List<Addresses>? _addresses;
String _customerGuid; String? _customerGuid;
dynamic _username; dynamic _username;
String _email; String? _email;
dynamic _firstName; dynamic _firstName;
dynamic _lastName; dynamic _lastName;
dynamic _languageId; dynamic _languageId;
dynamic _dateOfBirth; dynamic _dateOfBirth;
dynamic _gender; dynamic _gender;
dynamic _adminComment; dynamic _adminComment;
bool _isTaxExempt; bool? _isTaxExempt;
bool _hasShoppingCartItems; bool? _hasShoppingCartItems;
bool _active; bool? _active;
bool _deleted; bool? _deleted;
bool _isSystemAccount; bool? _isSystemAccount;
dynamic _systemName; dynamic _systemName;
dynamic _lastIpAddress; dynamic _lastIpAddress;
String _createdOnUtc; String? _createdOnUtc;
dynamic _lastLoginDateUtc; dynamic _lastLoginDateUtc;
String _lastActivityDateUtc; String? _lastActivityDateUtc;
int _registeredInStoreId; int? _registeredInStoreId;
bool _subscribedToNewsletter; bool? _subscribedToNewsletter;
List<int> _roleIds; List<int>? _roleIds;
int _id; int? _id;
List<dynamic> get shoppingCartItems => _shoppingCartItems; List<dynamic> get shoppingCartItems => _shoppingCartItems!;
dynamic get billingAddress => _billingAddress; dynamic get billingAddress => _billingAddress;
dynamic get shippingAddress => _shippingAddress; dynamic get shippingAddress => _shippingAddress;
List<Addresses> get addresses => _addresses; List<Addresses> get addresses => _addresses!;
String get customerGuid => _customerGuid; String get customerGuid => _customerGuid!;
dynamic get username => _username; dynamic get username => _username;
String get email => _email; String get email => _email!;
dynamic get firstName => _firstName; dynamic get firstName => _firstName;
dynamic get lastName => _lastName; dynamic get lastName => _lastName;
dynamic get languageId => _languageId; dynamic get languageId => _languageId;
dynamic get dateOfBirth => _dateOfBirth; dynamic get dateOfBirth => _dateOfBirth;
dynamic get gender => _gender; dynamic get gender => _gender;
dynamic get adminComment => _adminComment; dynamic get adminComment => _adminComment;
bool get isTaxExempt => _isTaxExempt; bool get isTaxExempt => _isTaxExempt!;
bool get hasShoppingCartItems => _hasShoppingCartItems; bool get hasShoppingCartItems => _hasShoppingCartItems!;
bool get active => _active; bool get active => _active!;
bool get deleted => _deleted; bool get deleted => _deleted!;
bool get isSystemAccount => _isSystemAccount; bool get isSystemAccount => _isSystemAccount!;
dynamic get systemName => _systemName; dynamic get systemName => _systemName;
dynamic get lastIpAddress => _lastIpAddress; dynamic get lastIpAddress => _lastIpAddress;
String get createdOnUtc => _createdOnUtc; String get createdOnUtc => _createdOnUtc!;
dynamic get lastLoginDateUtc => _lastLoginDateUtc; dynamic get lastLoginDateUtc => _lastLoginDateUtc;
String get lastActivityDateUtc => _lastActivityDateUtc; String get lastActivityDateUtc => _lastActivityDateUtc!;
int get registeredInStoreId => _registeredInStoreId; int get registeredInStoreId => _registeredInStoreId!;
bool get subscribedToNewsletter => _subscribedToNewsletter; bool get subscribedToNewsletter => _subscribedToNewsletter!;
List<dynamic> get roleIds => _roleIds; List<dynamic> get roleIds => _roleIds!;
int get id => _id; int get id => _id!;
PackagesCustomerResponseModel({ PackagesCustomerResponseModel({
List<dynamic> shoppingCartItems, List<PackagesCartItemsResponseModel>? shoppingCartItems,
dynamic billingAddress, dynamic billingAddress,
dynamic shippingAddress, dynamic shippingAddress,
List<Addresses> addresses, List<Addresses>? addresses,
String customerGuid, String? customerGuid,
dynamic username, dynamic username,
String email, String? email,
dynamic firstName, dynamic firstName,
dynamic lastName, dynamic lastName,
dynamic languageId, dynamic languageId,
dynamic dateOfBirth, dynamic dateOfBirth,
dynamic gender, dynamic gender,
dynamic adminComment, dynamic adminComment,
bool isTaxExempt, bool? isTaxExempt,
bool hasShoppingCartItems, bool? hasShoppingCartItems,
bool active, bool? active,
bool deleted, bool? deleted,
bool isSystemAccount, bool? isSystemAccount,
dynamic systemName, dynamic systemName,
dynamic lastIpAddress, dynamic lastIpAddress,
String createdOnUtc, String? createdOnUtc,
dynamic lastLoginDateUtc, dynamic lastLoginDateUtc,
String lastActivityDateUtc, String? lastActivityDateUtc,
int registeredInStoreId, int? registeredInStoreId,
bool subscribedToNewsletter, bool? subscribedToNewsletter,
List<dynamic> roleIds, List<int>? roleIds,
int id}){ int? id}){
_shoppingCartItems = shoppingCartItems; _shoppingCartItems = shoppingCartItems;
_billingAddress = billingAddress; _billingAddress = billingAddress;
_shippingAddress = shippingAddress; _shippingAddress = shippingAddress;
@ -148,7 +148,7 @@ class PackagesCustomerResponseModel {
if (json["addresses"] != null) { if (json["addresses"] != null) {
_addresses = []; _addresses = [];
json["addresses"].forEach((v) { json["addresses"].forEach((v) {
_addresses.add(Addresses.fromJson(v)); _addresses!.add(Addresses.fromJson(v));
}); });
} }
_customerGuid = json["customer_guid"]; _customerGuid = json["customer_guid"];
@ -176,14 +176,14 @@ class PackagesCustomerResponseModel {
if (json["role_ids"] != null) { if (json["role_ids"] != null) {
_roleIds = []; _roleIds = [];
json["role_ids"].forEach((v) { json["role_ids"].forEach((v) {
_roleIds.add(v); _roleIds!.add(v);
}); });
} }
if (json["shopping_cart_items"] != null) { if (json["shopping_cart_items"] != null) {
_shoppingCartItems = []; _shoppingCartItems = [];
json["shopping_cart_items"].forEach((v) { json["shopping_cart_items"].forEach((v) {
_shoppingCartItems.add(PackagesCartItemsResponseModel.fromJson(v)); _shoppingCartItems!.add(PackagesCartItemsResponseModel.fromJson(v));
}); });
} }
@ -193,12 +193,12 @@ class PackagesCustomerResponseModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
var map = <String, dynamic>{}; var map = <String, dynamic>{};
if (_shoppingCartItems != null) { if (_shoppingCartItems != null) {
map["shopping_cart_items"] = _shoppingCartItems.map((v) => v.toJson()).toList(); map["shopping_cart_items"] = _shoppingCartItems!.map((v) => v.toJson()).toList();
} }
map["billing_address"] = _billingAddress; map["billing_address"] = _billingAddress;
map["shipping_address"] = _shippingAddress; map["shipping_address"] = _shippingAddress;
if (_addresses != null) { if (_addresses != null) {
map["addresses"] = _addresses.map((v) => v.toJson()).toList(); map["addresses"] = _addresses!.map((v) => v.toJson()).toList();
} }
map["customer_guid"] = _customerGuid; map["customer_guid"] = _customerGuid;
map["username"] = _username; map["username"] = _username;
@ -222,7 +222,7 @@ class PackagesCustomerResponseModel {
map["registered_in_store_id"] = _registeredInStoreId; map["registered_in_store_id"] = _registeredInStoreId;
map["subscribed_to_newsletter"] = _subscribedToNewsletter; map["subscribed_to_newsletter"] = _subscribedToNewsletter;
if (_roleIds != null) { if (_roleIds != null) {
map["role_ids"] = _roleIds.map((v) => v).toList(); map["role_ids"] = _roleIds!.map((v) => v).toList();
} }
map["id"] = _id; map["id"] = _id;
return map; return map;
@ -251,7 +251,7 @@ class PackagesCustomerResponseModel {
class Addresses { class Addresses {
dynamic _firstName; dynamic _firstName;
dynamic _lastName; dynamic _lastName;
String _email; String? _email;
dynamic _company; dynamic _company;
dynamic _countryId; dynamic _countryId;
dynamic _country; dynamic _country;
@ -260,16 +260,16 @@ class Addresses {
dynamic _address1; dynamic _address1;
dynamic _address2; dynamic _address2;
dynamic _zipPostalCode; dynamic _zipPostalCode;
String _phoneNumber; String? _phoneNumber;
dynamic _faxNumber; dynamic _faxNumber;
dynamic _customerAttributes; dynamic _customerAttributes;
String _createdOnUtc; String? _createdOnUtc;
dynamic _province; dynamic _province;
int _id; int? _id;
dynamic get firstName => _firstName; dynamic get firstName => _firstName;
dynamic get lastName => _lastName; dynamic get lastName => _lastName;
String get email => _email; String get email => _email!;
dynamic get company => _company; dynamic get company => _company;
dynamic get countryId => _countryId; dynamic get countryId => _countryId;
dynamic get country => _country; dynamic get country => _country;
@ -278,17 +278,17 @@ class Addresses {
dynamic get address1 => _address1; dynamic get address1 => _address1;
dynamic get address2 => _address2; dynamic get address2 => _address2;
dynamic get zipPostalCode => _zipPostalCode; dynamic get zipPostalCode => _zipPostalCode;
String get phoneNumber => _phoneNumber; String get phoneNumber => _phoneNumber!;
dynamic get faxNumber => _faxNumber; dynamic get faxNumber => _faxNumber;
dynamic get customerAttributes => _customerAttributes; dynamic get customerAttributes => _customerAttributes;
String get createdOnUtc => _createdOnUtc; String get createdOnUtc => _createdOnUtc!;
dynamic get province => _province; dynamic get province => _province;
int get id => _id; int get id => _id!;
Addresses({ Addresses({
dynamic firstName, dynamic firstName,
dynamic lastName, dynamic lastName,
String email, String? email,
dynamic company, dynamic company,
dynamic countryId, dynamic countryId,
dynamic country, dynamic country,
@ -297,12 +297,12 @@ class Addresses {
dynamic address1, dynamic address1,
dynamic address2, dynamic address2,
dynamic zipPostalCode, dynamic zipPostalCode,
String phoneNumber, String? phoneNumber,
dynamic faxNumber, dynamic faxNumber,
dynamic customerAttributes, dynamic customerAttributes,
String createdOnUtc, String? createdOnUtc,
dynamic province, dynamic province,
int id}){ int? id}){
_firstName = firstName; _firstName = firstName;
_lastName = lastName; _lastName = lastName;
_email = email; _email = email;

@ -2,25 +2,25 @@ import 'package:diplomaticquarterapp/generated/json/base/json_convert_content.da
import 'package:diplomaticquarterapp/generated/json/base/json_field.dart'; import 'package:diplomaticquarterapp/generated/json/base/json_field.dart';
class PackagesResponseModel with JsonConvert<PackagesResponseModel> { class PackagesResponseModel with JsonConvert<PackagesResponseModel> {
int id; int? id;
@JSONField(name: "visible_individually") @JSONField(name: "visible_individually")
bool visibleIndividually; bool? visibleIndividually;
String name; String? name;
String namen; String? namen;
@JSONField(name: "localized_names") @JSONField(name: "localized_names")
List<OfferProductsResponseModelLocalizedName> localizedNames; List<OfferProductsResponseModelLocalizedName>? localizedNames;
@JSONField(name: "short_description") @JSONField(name: "short_description")
String shortDescription; String? shortDescription;
@JSONField(name: "short_descriptionn") @JSONField(name: "short_descriptionn")
String shortDescriptionn; String? shortDescriptionn;
@JSONField(name: "full_description") @JSONField(name: "full_description")
String fullDescription; String? fullDescription;
@JSONField(name: "full_descriptionn") @JSONField(name: "full_descriptionn")
String fullDescriptionn; String? fullDescriptionn;
@JSONField(name: "markas_new") @JSONField(name: "markas_new")
bool markasNew; bool? markasNew;
@JSONField(name: "show_on_home_page") @JSONField(name: "show_on_home_page")
bool showOnHomePage; bool? showOnHomePage;
@JSONField(name: "meta_keywords") @JSONField(name: "meta_keywords")
dynamic metaKeywords; dynamic metaKeywords;
@JSONField(name: "meta_description") @JSONField(name: "meta_description")
@ -28,20 +28,20 @@ class PackagesResponseModel with JsonConvert<PackagesResponseModel> {
@JSONField(name: "meta_title") @JSONField(name: "meta_title")
dynamic metaTitle; dynamic metaTitle;
@JSONField(name: "allow_customer_reviews") @JSONField(name: "allow_customer_reviews")
bool allowCustomerReviews; bool? allowCustomerReviews;
@JSONField(name: "approved_rating_sum") @JSONField(name: "approved_rating_sum")
int approvedRatingSum; int? approvedRatingSum;
@JSONField(name: "not_approved_rating_sum") @JSONField(name: "not_approved_rating_sum")
int notApprovedRatingSum; int? notApprovedRatingSum;
@JSONField(name: "approved_total_reviews") @JSONField(name: "approved_total_reviews")
int approvedTotalReviews; int? approvedTotalReviews;
@JSONField(name: "not_approved_total_reviews") @JSONField(name: "not_approved_total_reviews")
int notApprovedTotalReviews; int? notApprovedTotalReviews;
String sku; String? sku;
@JSONField(name: "is_rx") @JSONField(name: "is_rx")
bool isRx; bool? isRx;
@JSONField(name: "prescription_required") @JSONField(name: "prescription_required")
bool prescriptionRequired; bool? prescriptionRequired;
@JSONField(name: "rx_message") @JSONField(name: "rx_message")
dynamic rxMessage; dynamic rxMessage;
@JSONField(name: "rx_messagen") @JSONField(name: "rx_messagen")
@ -50,88 +50,89 @@ class PackagesResponseModel with JsonConvert<PackagesResponseModel> {
dynamic manufacturerPartNumber; dynamic manufacturerPartNumber;
dynamic gtin; dynamic gtin;
@JSONField(name: "is_gift_card") @JSONField(name: "is_gift_card")
bool isGiftCard; bool? isGiftCard;
@JSONField(name: "require_other_products") @JSONField(name: "require_other_products")
bool requireOtherProducts; bool? requireOtherProducts;
@JSONField(name: "automatically_add_required_products") @JSONField(name: "automatically_add_required_products")
bool automaticallyAddRequiredProducts; bool? automaticallyAddRequiredProducts;
@JSONField(name: "is_download") @JSONField(name: "is_download")
bool isDownload; bool? isDownload;
@JSONField(name: "unlimited_downloads") @JSONField(name: "unlimited_downloads")
bool unlimitedDownloads; bool? unlimitedDownloads;
@JSONField(name: "max_number_of_downloads") @JSONField(name: "max_number_of_downloads")
int maxNumberOfDownloads; int? maxNumberOfDownloads;
@JSONField(name: "download_expiration_days") @JSONField(name: "download_expiration_days")
dynamic downloadExpirationDays; dynamic downloadExpirationDays;
@JSONField(name: "has_sample_download") @JSONField(name: "has_sample_download")
bool hasSampleDownload; bool? hasSampleDownload;
@JSONField(name: "has_user_agreement") @JSONField(name: "has_user_agreement")
bool hasUserAgreement; bool? hasUserAgreement;
@JSONField(name: "is_recurring") @JSONField(name: "is_recurring")
bool isRecurring; bool? isRecurring;
@JSONField(name: "recurring_cycle_length") @JSONField(name: "recurring_cycle_length")
int recurringCycleLength; int? recurringCycleLength;
@JSONField(name: "recurring_total_cycles") @JSONField(name: "recurring_total_cycles")
int recurringTotalCycles; int? recurringTotalCycles;
@JSONField(name: "is_rental") @JSONField(name: "is_rental")
bool isRental; bool? isRental;
@JSONField(name: "rental_price_length") @JSONField(name: "rental_price_length")
int rentalPriceLength; int? rentalPriceLength;
@JSONField(name: "is_ship_enabled") @JSONField(name: "is_ship_enabled")
bool isShipEnabled; bool? isShipEnabled;
@JSONField(name: "is_free_shipping") @JSONField(name: "is_free_shipping")
bool isFreeShipping; bool? isFreeShipping;
@JSONField(name: "ship_separately") @JSONField(name: "ship_separately")
bool shipSeparately; bool? shipSeparately;
@JSONField(name: "additional_shipping_charge") @JSONField(name: "additional_shipping_charge")
double additionalShippingCharge; double? additionalShippingCharge;
@JSONField(name: "is_tax_exempt") @JSONField(name: "is_tax_exempt")
bool isTaxExempt; bool? isTaxExempt;
@JSONField(name: "is_telecommunications_or_broadcasting_or_electronic_services") @JSONField(name: "is_telecommunications_or_broadcasting_or_electronic_services")
bool isTelecommunicationsOrBroadcastingOrElectronicServices; bool? isTelecommunicationsOrBroadcastingOrElectronicServices;
@JSONField(name: "use_multiple_warehouses") @JSONField(name: "use_multiple_warehouses")
bool useMultipleWarehouses; bool? useMultipleWarehouses;
@JSONField(name: "manage_inventory_method_id") @JSONField(name: "manage_inventory_method_id")
int manageInventoryMethodId; int? manageInventoryMethodId;
@JSONField(name: "stock_quantity") @JSONField(name: "stock_quantity")
int stockQuantity; int? stockQuantity;
@JSONField(name: "stock_availability") @JSONField(name: "stock_availability")
String stockAvailability; String? stockAvailability;
@JSONField(name: "stock_availabilityn") @JSONField(name: "stock_availabilityn")
String stockAvailabilityn; String? stockAvailabilityn;
@JSONField(name: "display_stock_availability") @JSONField(name: "display_stock_availability")
bool displayStockAvailability; bool? displayStockAvailability;
@JSONField(name: "display_stock_quantity") @JSONField(name: "display_stock_quantity")
bool displayStockQuantity; bool? displayStockQuantity;
@JSONField(name: "min_stock_quantity") @JSONField(name: "min_stock_quantity")
int minStockQuantity; int? minStockQuantity;
@JSONField(name: "notify_admin_for_quantity_below") @JSONField(name: "notify_admin_for_quantity_below")
int notifyAdminForQuantityBelow; int? notifyAdminForQuantityBelow;
@JSONField(name: "allow_back_in_stock_subscriptions") @JSONField(name: "allow_back_in_stock_subscriptions")
bool allowBackInStockSubscriptions; bool? allowBackInStockSubscriptions;
@JSONField(name: "order_minimum_quantity") @JSONField(name: "order_minimum_quantity")
int orderMinimumQuantity; int? orderMinimumQuantity;
@JSONField(name: "order_maximum_quantity") @JSONField(name: "order_maximum_quantity")
int orderMaximumQuantity; int? orderMaximumQuantity;
@JSONField(name: "allowed_quantities") @JSONField(name: "allowed_quantities")
dynamic allowedQuantities; dynamic allowedQuantities;
@JSONField(name: "allow_adding_only_existing_attribute_combinations") @JSONField(name: "allow_adding_only_existing_attribute_combinations")
bool allowAddingOnlyExistingAttributeCombinations; bool? allowAddingOnlyExistingAttributeCombinations;
@JSONField(name: "disable_buy_button") @JSONField(name: "disable_buy_button")
bool disableBuyButton; bool? disableBuyButton;
@JSONField(name: "disable_wishlist_button") @JSONField(name: "disable_wishlist_button")
bool disableWishlistButton; bool? disableWishlistButton;
@JSONField(name: "available_for_pre_order") @JSONField(name: "available_for_pre_order")
bool availableForPreOrder; bool? availableForPreOrder;
@JSONField(name: "pre_order_availability_start_date_time_utc") @JSONField(name: "pre_order_availability_start_date_time_utc")
dynamic preOrderAvailabilityStartDateTimeUtc; dynamic preOrderAvailabilityStartDateTimeUtc;
@JSONField(name: "call_for_price") @JSONField(name: "call_for_price")
bool callForPrice; bool? callForPrice;
double price; double? price;
@JSONField(name: "old_price") @JSONField(name: "old_price")
double oldPrice; double? oldPrice;
@JSONField(name: "product_cost") @JSONField(name: "product_cost")
double productCost; double? productCost;
@JSONField(name: "special_price") @JSONField(name: "special_price")
dynamic specialPrice; dynamic specialPrice;
@JSONField(name: "special_price_start_date_time_utc") @JSONField(name: "special_price_start_date_time_utc")
@ -139,21 +140,21 @@ class PackagesResponseModel with JsonConvert<PackagesResponseModel> {
@JSONField(name: "special_price_end_date_time_utc") @JSONField(name: "special_price_end_date_time_utc")
dynamic specialPriceEndDateTimeUtc; dynamic specialPriceEndDateTimeUtc;
@JSONField(name: "customer_enters_price") @JSONField(name: "customer_enters_price")
bool customerEntersPrice; bool? customerEntersPrice;
@JSONField(name: "minimum_customer_entered_price") @JSONField(name: "minimum_customer_entered_price")
double minimumCustomerEnteredPrice; double? minimumCustomerEnteredPrice;
@JSONField(name: "maximum_customer_entered_price") @JSONField(name: "maximum_customer_entered_price")
double maximumCustomerEnteredPrice; double? maximumCustomerEnteredPrice;
@JSONField(name: "baseprice_enabled") @JSONField(name: "baseprice_enabled")
bool basepriceEnabled; bool? basepriceEnabled;
@JSONField(name: "baseprice_amount") @JSONField(name: "baseprice_amount")
double basepriceAmount; double? basepriceAmount;
@JSONField(name: "baseprice_base_amount") @JSONField(name: "baseprice_base_amount")
double basepriceBaseAmount; double? basepriceBaseAmount;
@JSONField(name: "has_tier_prices") @JSONField(name: "has_tier_prices")
bool hasTierPrices; bool? hasTierPrices;
@JSONField(name: "has_discounts_applied") @JSONField(name: "has_discounts_applied")
bool hasDiscountsApplied; bool? hasDiscountsApplied;
@JSONField(name: "discount_name") @JSONField(name: "discount_name")
dynamic discountName; dynamic discountName;
@JSONField(name: "discount_namen") @JSONField(name: "discount_namen")
@ -164,83 +165,83 @@ class PackagesResponseModel with JsonConvert<PackagesResponseModel> {
dynamic discountDescriptionn; dynamic discountDescriptionn;
@JSONField(name: "discount_percentage") @JSONField(name: "discount_percentage")
dynamic discountPercentage; dynamic discountPercentage;
String currency; String? currency;
String currencyn; String? currencyn;
double weight; double? weight;
double length; double? length;
double width; double? width;
double height; double? height;
@JSONField(name: "available_start_date_time_utc") @JSONField(name: "available_start_date_time_utc")
dynamic availableStartDateTimeUtc; dynamic availableStartDateTimeUtc;
@JSONField(name: "available_end_date_time_utc") @JSONField(name: "available_end_date_time_utc")
dynamic availableEndDateTimeUtc; dynamic availableEndDateTimeUtc;
@JSONField(name: "display_order") @JSONField(name: "display_order")
int displayOrder; int? displayOrder;
bool published; bool? published;
bool deleted; bool? deleted;
@JSONField(name: "created_on_utc") @JSONField(name: "created_on_utc")
String createdOnUtc; String? createdOnUtc;
@JSONField(name: "updated_on_utc") @JSONField(name: "updated_on_utc")
String updatedOnUtc; String? updatedOnUtc;
@JSONField(name: "product_type") @JSONField(name: "product_type")
String productType; String? productType;
@JSONField(name: "parent_grouped_product_id") @JSONField(name: "parent_grouped_product_id")
int parentGroupedProductId; int? parentGroupedProductId;
@JSONField(name: "role_ids") @JSONField(name: "role_ids")
List<dynamic> roleIds; List<dynamic>? roleIds;
@JSONField(name: "discount_ids") @JSONField(name: "discount_ids")
List<dynamic> discountIds; List<dynamic>? discountIds;
@JSONField(name: "store_ids") @JSONField(name: "store_ids")
List<dynamic> storeIds; List<dynamic>? storeIds;
@JSONField(name: "store_names") @JSONField(name: "store_names")
List<dynamic> storeNames; List<dynamic>? storeNames;
@JSONField(name: "manufacturer_ids") @JSONField(name: "manufacturer_ids")
List<int> manufacturerIds; List<int>? manufacturerIds;
List<dynamic> reviews; List<dynamic>? reviews;
List<OfferProductsResponseModelImage> images; List<OfferProductsResponseModelImage>? images;
List<dynamic> attributes; List<dynamic>? attributes;
List<OfferProductsResponseModelSpecification> specifications; List<OfferProductsResponseModelSpecification>? specifications;
@JSONField(name: "associated_product_ids") @JSONField(name: "associated_product_ids")
List<dynamic> associatedProductIds; List<dynamic>? associatedProductIds;
List<dynamic> tags; List<dynamic>? tags;
@JSONField(name: "vendor_id") @JSONField(name: "vendor_id")
int vendorId; int? vendorId;
@JSONField(name: "se_name") @JSONField(name: "se_name")
String seName; String? seName;
String getName() { String getName() {
if (localizedNames.length == 2) { if (localizedNames!.length == 2) {
if (localizedNames.first.languageId == 2) if (localizedNames?.first.languageId == 2)
return localizedNames.first.localizedName ?? name; return localizedNames!.first.localizedName ?? name.toString();
else if (localizedNames.first.languageId == 1) return localizedNames.last.localizedName ?? name; else if (localizedNames!.first.languageId == 1) return localizedNames?.last.localizedName ?? name.toString();
} }
return name; return name.toString();
} }
} }
class OfferProductsResponseModelLocalizedName with JsonConvert<OfferProductsResponseModelLocalizedName> { class OfferProductsResponseModelLocalizedName with JsonConvert<OfferProductsResponseModelLocalizedName> {
@JSONField(name: "language_id") @JSONField(name: "language_id")
int languageId; int? languageId;
@JSONField(name: "localized_name") @JSONField(name: "localized_name")
String localizedName; String? localizedName;
} }
class OfferProductsResponseModelImage with JsonConvert<OfferProductsResponseModelImage> { class OfferProductsResponseModelImage with JsonConvert<OfferProductsResponseModelImage> {
int id; int? id;
int position; int? position;
String src; String? src;
String thumb; String? thumb;
String attachment; String? attachment;
} }
class OfferProductsResponseModelSpecification with JsonConvert<OfferProductsResponseModelSpecification> { class OfferProductsResponseModelSpecification with JsonConvert<OfferProductsResponseModelSpecification> {
int id; int? id;
@JSONField(name: "display_order") @JSONField(name: "display_order")
int displayOrder; int? displayOrder;
@JSONField(name: "default_value") @JSONField(name: "default_value")
String defaultValue; String? defaultValue;
@JSONField(name: "default_valuen") @JSONField(name: "default_valuen")
String defaultValuen; String? defaultValuen;
String name; String? name;
String nameN; String? nameN;
} }

@ -1,36 +1,34 @@
import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesCustomerResponseModel.dart'; import 'package:diplomaticquarterapp/core/model/packages_offers/responses/PackagesCustomerResponseModel.dart';
import 'PackagesCartItemsResponseModel.dart'; import 'PackagesCartItemsResponseModel.dart';
class PackagesOrderResponseModel { class PackagesOrderResponseModel {
String _customOrderNumber; String? _customOrderNumber;
int _storeId; int? _storeId;
dynamic _pickUpInStore; dynamic _pickUpInStore;
String _paymentMethodSystemName; String? _paymentMethodSystemName;
String _customerCurrencyCode; String? _customerCurrencyCode;
double _currencyRate; double? _currencyRate;
int _customerTaxDisplayTypeId; int? _customerTaxDisplayTypeId;
dynamic _vatNumber; dynamic _vatNumber;
double _orderSubtotalInclTax; double? _orderSubtotalInclTax;
double _orderSubtotalExclTax; double? _orderSubtotalExclTax;
double _orderSubTotalDiscountInclTax; double? _orderSubTotalDiscountInclTax;
double _orderSubTotalDiscountExclTax; double? _orderSubTotalDiscountExclTax;
double _orderShippingInclTax; double? _orderShippingInclTax;
double _orderShippingExclTax; double? _orderShippingExclTax;
double _paymentMethodAdditionalFeeInclTax; double? _paymentMethodAdditionalFeeInclTax;
double _paymentMethodAdditionalFeeExclTax; double? _paymentMethodAdditionalFeeExclTax;
String _taxRates; String? _taxRates;
double _orderTax; double? _orderTax;
double _orderDiscount; double? _orderDiscount;
double _orderTotal; double? _orderTotal;
double _refundedAmount; double? _refundedAmount;
dynamic _rewardPointsWereAdded; dynamic _rewardPointsWereAdded;
String _checkoutAttributeDescription; String? _checkoutAttributeDescription;
int _customerLanguageId; int? _customerLanguageId;
int _affiliateId; int? _affiliateId;
String _customerIp; String? _customerIp;
dynamic _authorizationTransactionId; dynamic _authorizationTransactionId;
dynamic _authorizationTransactionCode; dynamic _authorizationTransactionCode;
dynamic _authorizationTransactionResult; dynamic _authorizationTransactionResult;
@ -40,98 +38,146 @@ class PackagesOrderResponseModel {
dynamic _paidDateUtc; dynamic _paidDateUtc;
dynamic _shippingMethod; dynamic _shippingMethod;
dynamic _shippingRateComputationMethodSystemName; dynamic _shippingRateComputationMethodSystemName;
String _customValuesXml; String? _customValuesXml;
dynamic _paymentOption; dynamic _paymentOption;
bool _deleted; bool? _deleted;
String _createdOnUtc; String? _createdOnUtc;
PackagesCustomerResponseModel _customer; PackagesCustomerResponseModel? _customer;
int _customerId; int? _customerId;
dynamic _billingAddress; dynamic _billingAddress;
dynamic _shippingAddress; dynamic _shippingAddress;
List<PackagesCartItemsResponseModel> _orderItems; List<PackagesCartItemsResponseModel>? _orderItems;
String _orderStatus; String? _orderStatus;
String _paymentStatus; String? _paymentStatus;
String _shippingStatus; String? _shippingStatus;
String _customerTaxDisplayType; String? _customerTaxDisplayType;
int _id; int? _id;
String get customOrderNumber => _customOrderNumber; String get customOrderNumber => _customOrderNumber!;
int get storeId => _storeId;
int get storeId => _storeId!;
dynamic get pickUpInStore => _pickUpInStore; dynamic get pickUpInStore => _pickUpInStore;
String get paymentMethodSystemName => _paymentMethodSystemName;
String get customerCurrencyCode => _customerCurrencyCode; String get paymentMethodSystemName => _paymentMethodSystemName!;
double get currencyRate => _currencyRate;
int get customerTaxDisplayTypeId => _customerTaxDisplayTypeId; String get customerCurrencyCode => _customerCurrencyCode!;
double get currencyRate => _currencyRate!;
int get customerTaxDisplayTypeId => _customerTaxDisplayTypeId!;
dynamic get vatNumber => _vatNumber; dynamic get vatNumber => _vatNumber;
double get orderSubtotalInclTax => _orderSubtotalInclTax;
double get orderSubtotalExclTax => _orderSubtotalExclTax; double get orderSubtotalInclTax => _orderSubtotalInclTax!;
double get orderSubTotalDiscountInclTax => _orderSubTotalDiscountInclTax;
double get orderSubTotalDiscountExclTax => _orderSubTotalDiscountExclTax; double get orderSubtotalExclTax => _orderSubtotalExclTax!;
double get orderShippingInclTax => _orderShippingInclTax;
double get orderShippingExclTax => _orderShippingExclTax; double get orderSubTotalDiscountInclTax => _orderSubTotalDiscountInclTax!;
double get paymentMethodAdditionalFeeInclTax => _paymentMethodAdditionalFeeInclTax;
double get paymentMethodAdditionalFeeExclTax => _paymentMethodAdditionalFeeExclTax; double get orderSubTotalDiscountExclTax => _orderSubTotalDiscountExclTax!;
String get taxRates => _taxRates;
double get orderTax => _orderTax; double get orderShippingInclTax => _orderShippingInclTax!;
double get orderDiscount => _orderDiscount;
double get orderTotal => _orderTotal; double get orderShippingExclTax => _orderShippingExclTax!;
double get refundedAmount => _refundedAmount;
double get paymentMethodAdditionalFeeInclTax => _paymentMethodAdditionalFeeInclTax!;
double get paymentMethodAdditionalFeeExclTax => _paymentMethodAdditionalFeeExclTax!;
String get taxRates => _taxRates!;
double get orderTax => _orderTax!;
double get orderDiscount => _orderDiscount!;
double get orderTotal => _orderTotal!;
double get refundedAmount => _refundedAmount!;
dynamic get rewardPointsWereAdded => _rewardPointsWereAdded; dynamic get rewardPointsWereAdded => _rewardPointsWereAdded;
String get checkoutAttributeDescription => _checkoutAttributeDescription;
int get customerLanguageId => _customerLanguageId; String get checkoutAttributeDescription => _checkoutAttributeDescription!;
int get affiliateId => _affiliateId;
String get customerIp => _customerIp; int get customerLanguageId => _customerLanguageId!;
int get affiliateId => _affiliateId!;
String get customerIp => _customerIp!;
dynamic get authorizationTransactionId => _authorizationTransactionId; dynamic get authorizationTransactionId => _authorizationTransactionId;
dynamic get authorizationTransactionCode => _authorizationTransactionCode; dynamic get authorizationTransactionCode => _authorizationTransactionCode;
dynamic get authorizationTransactionResult => _authorizationTransactionResult; dynamic get authorizationTransactionResult => _authorizationTransactionResult;
dynamic get captureTransactionId => _captureTransactionId; dynamic get captureTransactionId => _captureTransactionId;
dynamic get captureTransactionResult => _captureTransactionResult; dynamic get captureTransactionResult => _captureTransactionResult;
dynamic get subscriptionTransactionId => _subscriptionTransactionId; dynamic get subscriptionTransactionId => _subscriptionTransactionId;
dynamic get paidDateUtc => _paidDateUtc; dynamic get paidDateUtc => _paidDateUtc;
dynamic get shippingMethod => _shippingMethod; dynamic get shippingMethod => _shippingMethod;
dynamic get shippingRateComputationMethodSystemName => _shippingRateComputationMethodSystemName; dynamic get shippingRateComputationMethodSystemName => _shippingRateComputationMethodSystemName;
String get customValuesXml => _customValuesXml;
String get customValuesXml => _customValuesXml!;
dynamic get paymentOption => _paymentOption; dynamic get paymentOption => _paymentOption;
bool get deleted => _deleted;
String get createdOnUtc => _createdOnUtc; bool get deleted => _deleted!;
PackagesCustomerResponseModel get customer => _customer;
int get customerId => _customerId; String get createdOnUtc => _createdOnUtc!;
PackagesCustomerResponseModel get customer => _customer!;
int get customerId => _customerId!;
dynamic get billingAddress => _billingAddress; dynamic get billingAddress => _billingAddress;
dynamic get shippingAddress => _shippingAddress; dynamic get shippingAddress => _shippingAddress;
List<PackagesCartItemsResponseModel> get orderItems => _orderItems;
String get orderStatus => _orderStatus; List<PackagesCartItemsResponseModel> get orderItems => _orderItems!;
String get paymentStatus => _paymentStatus;
String get shippingStatus => _shippingStatus; String get orderStatus => _orderStatus!;
String get customerTaxDisplayType => _customerTaxDisplayType;
int get id => _id; String get paymentStatus => _paymentStatus!;
OrderResponseModel({ String get shippingStatus => _shippingStatus!;
String customOrderNumber,
int storeId, String get customerTaxDisplayType => _customerTaxDisplayType!;
int get id => _id!;
OrderResponseModel(
{String? customOrderNumber,
int? storeId,
dynamic pickUpInStore, dynamic pickUpInStore,
String paymentMethodSystemName, String? paymentMethodSystemName,
String customerCurrencyCode, String? customerCurrencyCode,
double currencyRate, double? currencyRate,
int customerTaxDisplayTypeId, int? customerTaxDisplayTypeId,
dynamic vatNumber, dynamic vatNumber,
double orderSubtotalInclTax, double? orderSubtotalInclTax,
double orderSubtotalExclTax, double? orderSubtotalExclTax,
double orderSubTotalDiscountInclTax, double? orderSubTotalDiscountInclTax,
double orderSubTotalDiscountExclTax, double? orderSubTotalDiscountExclTax,
double orderShippingInclTax, double? orderShippingInclTax,
double orderShippingExclTax, double? orderShippingExclTax,
double paymentMethodAdditionalFeeInclTax, double? paymentMethodAdditionalFeeInclTax,
double paymentMethodAdditionalFeeExclTax, double? paymentMethodAdditionalFeeExclTax,
String taxRates, String? taxRates,
double orderTax, double? orderTax,
double orderDiscount, double? orderDiscount,
double orderTotal, double? orderTotal,
double refundedAmount, double? refundedAmount,
dynamic rewardPointsWereAdded, dynamic rewardPointsWereAdded,
String checkoutAttributeDescription, String? checkoutAttributeDescription,
int customerLanguageId, int? customerLanguageId,
int affiliateId, int? affiliateId,
String customerIp, String? customerIp,
dynamic authorizationTransactionId, dynamic authorizationTransactionId,
dynamic authorizationTransactionCode, dynamic authorizationTransactionCode,
dynamic authorizationTransactionResult, dynamic authorizationTransactionResult,
@ -141,46 +187,46 @@ class PackagesOrderResponseModel {
dynamic paidDateUtc, dynamic paidDateUtc,
dynamic shippingMethod, dynamic shippingMethod,
dynamic shippingRateComputationMethodSystemName, dynamic shippingRateComputationMethodSystemName,
String customValuesXml, String? customValuesXml,
dynamic paymentOption, dynamic paymentOption,
bool deleted, bool? deleted,
String createdOnUtc, String? createdOnUtc,
PackagesCustomerResponseModel customer, PackagesCustomerResponseModel? customer,
int customerId, int? customerId,
dynamic billingAddress, dynamic billingAddress,
dynamic shippingAddress, dynamic shippingAddress,
List<PackagesCartItemsResponseModel> orderItems, List<PackagesCartItemsResponseModel>? orderItems,
String orderStatus, String? orderStatus,
String paymentStatus, String? paymentStatus,
String shippingStatus, String? shippingStatus,
String customerTaxDisplayType, String? customerTaxDisplayType,
int id}){ int? id}) {
_customOrderNumber = customOrderNumber; _customOrderNumber = customOrderNumber!;
_storeId = storeId; _storeId = storeId!;
_pickUpInStore = pickUpInStore; _pickUpInStore = pickUpInStore;
_paymentMethodSystemName = paymentMethodSystemName; _paymentMethodSystemName = paymentMethodSystemName!;
_customerCurrencyCode = customerCurrencyCode; _customerCurrencyCode = customerCurrencyCode!;
_currencyRate = currencyRate; _currencyRate = currencyRate!;
_customerTaxDisplayTypeId = customerTaxDisplayTypeId; _customerTaxDisplayTypeId = customerTaxDisplayTypeId!;
_vatNumber = vatNumber; _vatNumber = vatNumber;
_orderSubtotalInclTax = orderSubtotalInclTax; _orderSubtotalInclTax = orderSubtotalInclTax!;
_orderSubtotalExclTax = orderSubtotalExclTax; _orderSubtotalExclTax = orderSubtotalExclTax!;
_orderSubTotalDiscountInclTax = orderSubTotalDiscountInclTax; _orderSubTotalDiscountInclTax = orderSubTotalDiscountInclTax!;
_orderSubTotalDiscountExclTax = orderSubTotalDiscountExclTax; _orderSubTotalDiscountExclTax = orderSubTotalDiscountExclTax!;
_orderShippingInclTax = orderShippingInclTax; _orderShippingInclTax = orderShippingInclTax!;
_orderShippingExclTax = orderShippingExclTax; _orderShippingExclTax = orderShippingExclTax!;
_paymentMethodAdditionalFeeInclTax = paymentMethodAdditionalFeeInclTax; _paymentMethodAdditionalFeeInclTax = paymentMethodAdditionalFeeInclTax!;
_paymentMethodAdditionalFeeExclTax = paymentMethodAdditionalFeeExclTax; _paymentMethodAdditionalFeeExclTax = paymentMethodAdditionalFeeExclTax!;
_taxRates = taxRates; _taxRates = taxRates!;
_orderTax = orderTax; _orderTax = orderTax!;
_orderDiscount = orderDiscount; _orderDiscount = orderDiscount!;
_orderTotal = orderTotal; _orderTotal = orderTotal!;
_refundedAmount = refundedAmount; _refundedAmount = refundedAmount!;
_rewardPointsWereAdded = rewardPointsWereAdded; _rewardPointsWereAdded = rewardPointsWereAdded;
_checkoutAttributeDescription = checkoutAttributeDescription; _checkoutAttributeDescription = checkoutAttributeDescription!;
_customerLanguageId = customerLanguageId; _customerLanguageId = customerLanguageId!;
_affiliateId = affiliateId; _affiliateId = affiliateId!;
_customerIp = customerIp; _customerIp = customerIp!;
_authorizationTransactionId = authorizationTransactionId; _authorizationTransactionId = authorizationTransactionId;
_authorizationTransactionCode = authorizationTransactionCode; _authorizationTransactionCode = authorizationTransactionCode;
_authorizationTransactionResult = authorizationTransactionResult; _authorizationTransactionResult = authorizationTransactionResult;
@ -190,21 +236,21 @@ class PackagesOrderResponseModel {
_paidDateUtc = paidDateUtc; _paidDateUtc = paidDateUtc;
_shippingMethod = shippingMethod; _shippingMethod = shippingMethod;
_shippingRateComputationMethodSystemName = shippingRateComputationMethodSystemName; _shippingRateComputationMethodSystemName = shippingRateComputationMethodSystemName;
_customValuesXml = customValuesXml; _customValuesXml = customValuesXml!;
_paymentOption = paymentOption; _paymentOption = paymentOption;
_deleted = deleted; _deleted = deleted!;
_createdOnUtc = createdOnUtc; _createdOnUtc = createdOnUtc!;
_customer = customer; _customer = customer!;
_customerId = customerId; _customerId = customerId!;
_billingAddress = billingAddress; _billingAddress = billingAddress;
_shippingAddress = shippingAddress; _shippingAddress = shippingAddress;
_orderItems = orderItems; _orderItems = orderItems!;
_orderStatus = orderStatus; _orderStatus = orderStatus!;
_paymentStatus = paymentStatus; _paymentStatus = paymentStatus!;
_shippingStatus = shippingStatus; _shippingStatus = shippingStatus!;
_customerTaxDisplayType = customerTaxDisplayType; _customerTaxDisplayType = customerTaxDisplayType!;
_id = id; _id = id!;
} }
PackagesOrderResponseModel.fromJson(dynamic json) { PackagesOrderResponseModel.fromJson(dynamic json) {
_customOrderNumber = json["custom_order_number"]; _customOrderNumber = json["custom_order_number"];
@ -213,7 +259,7 @@ class PackagesOrderResponseModel {
_paymentMethodSystemName = json["payment_method_system_name"]; _paymentMethodSystemName = json["payment_method_system_name"];
_customerCurrencyCode = json["customer_currency_code"]; _customerCurrencyCode = json["customer_currency_code"];
_currencyRate = json["currency_rate"]; _currencyRate = json["currency_rate"];
_customerTaxDisplayTypeId = json["customer_tax_display_type_id"]; _customerTaxDisplayTypeId = json["customer_tax_display_type_id"]!;
_vatNumber = json["vat_number"]; _vatNumber = json["vat_number"];
_orderSubtotalInclTax = json["order_subtotal_incl_tax"]; _orderSubtotalInclTax = json["order_subtotal_incl_tax"];
_orderSubtotalExclTax = json["order_subtotal_excl_tax"]; _orderSubtotalExclTax = json["order_subtotal_excl_tax"];
@ -246,15 +292,15 @@ class PackagesOrderResponseModel {
_paymentOption = json["payment_option"]; _paymentOption = json["payment_option"];
_deleted = json["deleted"]; _deleted = json["deleted"];
_createdOnUtc = json["created_on_utc"]; _createdOnUtc = json["created_on_utc"];
_customer = json["customer"] != null ? PackagesCustomerResponseModel.fromJson(json["customer"]) : null; _customer = (json["customer"] != null ? PackagesCustomerResponseModel.fromJson(json["customer"]) : null)!;
_customerId = json["customer_id"]; _customerId = json["customer_id"];
_billingAddress = json["billing_address"]; _billingAddress = json["billing_address"];
_shippingAddress = json["shipping_address"]; _shippingAddress = json["shipping_address"];
if (json["order_items"] != null) { if (json["order_items"] != null) {
_orderItems = []; _orderItems = [];
json["order_items"].forEach((v) { json["order_items"].forEach((v) {
_orderItems.add(PackagesCartItemsResponseModel.fromJson(v)); _orderItems!.add(PackagesCartItemsResponseModel.fromJson(v));
}); })!;
} }
_orderStatus = json["order_status"]; _orderStatus = json["order_status"];
_paymentStatus = json["payment_status"]; _paymentStatus = json["payment_status"];
@ -305,13 +351,13 @@ class PackagesOrderResponseModel {
map["deleted"] = _deleted; map["deleted"] = _deleted;
map["created_on_utc"] = _createdOnUtc; map["created_on_utc"] = _createdOnUtc;
if (_customer != null) { if (_customer != null) {
map["customer"] = _customer.toJson(); map["customer"] = _customer!.toJson();
} }
map["customer_id"] = _customerId; map["customer_id"] = _customerId;
map["billing_address"] = _billingAddress; map["billing_address"] = _billingAddress;
map["shipping_address"] = _shippingAddress; map["shipping_address"] = _shippingAddress;
if (_orderItems != null) { if (_orderItems != null) {
map["order_items"] = _orderItems.map((v) => v.toJson()).toList(); map["order_items"] = _orderItems!.map((v) => v.toJson()).toList();
} }
map["order_status"] = _orderStatus; map["order_status"] = _orderStatus;
map["payment_status"] = _paymentStatus; map["payment_status"] = _paymentStatus;
@ -320,5 +366,4 @@ class PackagesOrderResponseModel {
map["id"] = _id; map["id"] = _id;
return map; return map;
} }
} }

@ -1,9 +1,9 @@
class TamaraPaymentOption { class TamaraPaymentOption {
String name; String? name;
double minLimit; double? minLimit;
double maxLimit; double? maxLimit;
int id; int? id;
bool enable = true; bool? enable = true;
String fullName() => '$name Months'; String fullName() => '$name Months';

@ -1,23 +1,23 @@
class Addresses { class Addresses {
String id; String? id;
String firstName; String? firstName;
String lastName; String? lastName;
String email; String? email;
String company; String? company;
int countryId; int? countryId;
String country; String? country;
String stateProvinceId; String? stateProvinceId;
String city; String? city;
String address1; String? address1;
String address2; String? address2;
String zipPostalCode; String? zipPostalCode;
String phoneNumber; String? phoneNumber;
String faxNumber; String? faxNumber;
String customerAttributes; String? customerAttributes;
String createdOnUtc; String? createdOnUtc;
String province; String? province;
String latLong; String? latLong;
bool isChecked; bool? isChecked;
Addresses( Addresses(
{this.id, {this.id,

@ -1,24 +1,24 @@
import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart';
class BillingAddress { class BillingAddress {
String id; String? id;
String firstName; String? firstName;
String lastName; String? lastName;
String email; String? email;
String company; String? company;
int countryId; int? countryId;
String country; String? country;
String stateProvinceId; String? stateProvinceId;
String city; String? city;
String address1; String? address1;
String address2; String? address2;
String zipPostalCode; String? zipPostalCode;
String phoneNumber; String? phoneNumber;
String faxNumber; String? faxNumber;
String customerAttributes; String? customerAttributes;
String createdOnUtc; String? createdOnUtc;
String province; String? province;
String latLong; String? latLong;
BillingAddress( BillingAddress(
{this.id, {this.id,
@ -85,17 +85,18 @@ class BillingAddress {
} }
LatLng getLocation(){ LatLng getLocation(){
if(latLong.contains(',')){ if(latLong!.contains(',')){
var parts = latLong.trim().split(','); var parts = latLong!.trim().split(',');
if(parts.length == 2){ if(parts.length == 2){
var lat = double.tryParse(parts.first); var lat = double.tryParse(parts.first);
var lng = double.tryParse(parts.last); var lng = double.tryParse(parts.last);
if(lat != null || lng != null) { if(lat != null || lng != null) {
var location = LatLng(lat, lng); var location = LatLng(lat!, lng!);
return location; return location;
} }
} }
} }
return null; return LatLng(double.nan, double.nan);
//Changed By Aamir
} }
} }

@ -1,9 +1,9 @@
class CountryData { class CountryData {
int id; int? id;
String name; String? name;
String namen; String? namen;
String twoLetterIsoCode; String? twoLetterIsoCode;
String threeLetterIsoCode; String? threeLetterIsoCode;
CountryData( CountryData(
{this.id, {this.id,

@ -2,37 +2,37 @@ import 'package:diplomaticquarterapp/core/model/pharmacies/Addresses.dart';
import 'package:diplomaticquarterapp/core/model/pharmacies/BillingAddress.dart'; import 'package:diplomaticquarterapp/core/model/pharmacies/BillingAddress.dart';
class Customer { class Customer {
BillingAddress billingAddress; BillingAddress? billingAddress;
BillingAddress shippingAddress; BillingAddress? shippingAddress;
List<Addresses> addresses; List<Addresses>? addresses;
String fileNumber; String? fileNumber;
String iqamaNumber; String? iqamaNumber;
int isOutSa; int? isOutSa;
int patientType; int? patientType;
String gender; String? gender;
String birthDate; String? birthDate;
String phone; String? phone;
String countryCode; String? countryCode;
String yahalaAccountno; String? yahalaAccountno;
String id; String? id;
String username; String? username;
String email; String? email;
String firstName; String? firstName;
String lastName; String? lastName;
String languageId; String? languageId;
String adminComment; String? adminComment;
bool isTaxExempt; bool? isTaxExempt;
bool hasShoppingCartItems; bool? hasShoppingCartItems;
bool active; bool? active;
bool deleted; bool? deleted;
bool isSystemAccount; bool? isSystemAccount;
String systemName; String? systemName;
String lastIpAddress; String? lastIpAddress;
String createdOnUtc; String? createdOnUtc;
String lastLoginDateUtc; String? lastLoginDateUtc;
String lastActivityDateUtc; String? lastActivityDateUtc;
int registeredInStoreId; int? registeredInStoreId;
List<int> roleIds; List<int>? roleIds;
Customer( Customer(
{this.billingAddress, {this.billingAddress,
@ -75,9 +75,9 @@ class Customer {
? new BillingAddress.fromJson(json['shipping_address']) ? new BillingAddress.fromJson(json['shipping_address'])
: null; : null;
if (json['addresses'] != null) { if (json['addresses'] != null) {
addresses = new List<Addresses>(); addresses = [];
json['addresses'].forEach((v) { json['addresses'].forEach((v) {
addresses.add(new Addresses.fromJson(v)); addresses!.add(new Addresses.fromJson(v));
}); });
} }
fileNumber = json['file_number']; fileNumber = json['file_number'];
@ -108,9 +108,9 @@ class Customer {
lastActivityDateUtc = json['last_activity_date_utc']; lastActivityDateUtc = json['last_activity_date_utc'];
registeredInStoreId = json['registered_in_store_id']; registeredInStoreId = json['registered_in_store_id'];
if (json['role_ids'] != null) { if (json['role_ids'] != null) {
roleIds = new List<int>(); roleIds = [];
json['role_ids'].forEach((v) { json['role_ids'].forEach((v) {
roleIds.add(v); roleIds!.add(v);
}); });
} }
} }
@ -118,13 +118,13 @@ class Customer {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.billingAddress != null) { if (this.billingAddress != null) {
data['billing_address'] = this.billingAddress.toJson(); data['billing_address'] = this.billingAddress!.toJson();
} }
if (this.shippingAddress != null) { if (this.shippingAddress != null) {
data['shipping_address'] = this.shippingAddress.toJson(); data['shipping_address'] = this.shippingAddress!.toJson();
} }
if (this.addresses != null) { if (this.addresses != null) {
data['addresses'] = this.addresses.map((v) => v.toJson()).toList(); data['addresses'] = this.addresses!.map((v) => v.toJson()).toList();
} }
data['file_number'] = this.fileNumber; data['file_number'] = this.fileNumber;
data['iqama_number'] = this.iqamaNumber; data['iqama_number'] = this.iqamaNumber;

@ -2,414 +2,414 @@ import 'LakumInquiryInformationObjVersion.dart';
class LacumAccountInformation { class LacumAccountInformation {
String date; String? date;
int languageID; int? languageID;
int serviceName; int? serviceName;
String time; String? time;
String androidLink; String? androidLink;
String authenticationTokenID; String? authenticationTokenID;
String data; String? data;
bool dataw; bool? dataw;
int dietType; int? dietType;
String errorCode; String? errorCode;
String errorEndUserMessage; String? errorEndUserMessage;
String errorEndUserMessageN; String? errorEndUserMessageN;
String errorMessage; String? errorMessage;
int errorType; int? errorType;
int foodCategory; int? foodCategory;
String iOSLink; String? iOSLink;
bool isAuthenticated; bool? isAuthenticated;
int mealOrderStatus; int? mealOrderStatus;
int mealType; int? mealType;
int messageStatus; int? messageStatus;
int numberOfResultRecords; int? numberOfResultRecords;
String patientBlodType; String? patientBlodType;
String successMsg; String? successMsg;
String successMsgN; String? successMsgN;
int accountStatus; int? accountStatus;
String activeArchiveObject; String? activeArchiveObject;
int activeMedicationCount; int? activeMedicationCount;
String allMedicationTakenDuringAdmissionList; String? allMedicationTakenDuringAdmissionList;
int appointmentNo; int? appointmentNo;
String arePatientsOnlineList; String? arePatientsOnlineList;
String balanceAmount; String? balanceAmount;
String bloodGroupList; String? bloodGroupList;
int cVIUnreadCount; int? cVIUnreadCount;
String checkUserHasAccount; String? checkUserHasAccount;
int complaintNo; int? complaintNo;
String dischargeList; String? dischargeList;
int episodeID; int? episodeID;
String finalRadiologyList; String? finalRadiologyList;
String fullName; String? fullName;
String geoFPointsList; String? geoFPointsList;
String geoGetPateintInfo; String? geoGetPateintInfo;
String getAllDoctorsByProjectAndClinicList; String? getAllDoctorsByProjectAndClinicList;
String getAppointmentNumbersForDoctorList; String? getAppointmentNumbersForDoctorList;
String getCheckUpItemsList; String? getCheckUpItemsList;
String getCosmeticConferenceForTodayList; String? getCosmeticConferenceForTodayList;
String getDoctorERClinicResult; String? getDoctorERClinicResult;
String getInvoiceApprovalList; String? getInvoiceApprovalList;
String getNearestProjectList; String? getNearestProjectList;
String getPatientAdmissionOrAppoinmentNoList; String? getPatientAdmissionOrAppoinmentNoList;
String getPatientBloodType; String? getPatientBloodType;
String getPatientInsuranceCardStatusStatisticsList; String? getPatientInsuranceCardStatusStatisticsList;
String getSurveyList; String? getSurveyList;
String getTotalRegisteredPatientList; String? getTotalRegisteredPatientList;
String getUserDetailsList; String? getUserDetailsList;
String getCustomerPointInfo; String? getCustomerPointInfo;
String hISApprovalList; String? hISApprovalList;
String hISInpAdmissionList; String? hISInpAdmissionList;
String hISProgNoteAssesmentModelList; String? hISProgNoteAssesmentModelList;
String hMGGetAllOffersList; String? hMGGetAllOffersList;
bool hasApproval; bool? hasApproval;
bool hasConsultation; bool? hasConsultation;
bool hasDental; bool? hasDental;
bool hasLab; bool? hasLab;
bool hasPharmacy; bool? hasPharmacy;
bool hasRad; bool? hasRad;
String hmgSMSGetByProjectIDAndPatientIDList; String? hmgSMSGetByProjectIDAndPatientIDList;
int hoursLeft; int? hoursLeft;
String iNPMGetAllAdmissionList; String? iNPMGetAllAdmissionList;
String iNPMGetPatientInfoForSickLeaveReportList; String? iNPMGetPatientInfoForSickLeaveReportList;
String iNPMHISPatientMedicalStatusUnreadCount; String? iNPMHISPatientMedicalStatusUnreadCount;
String iNPMLABGetPatientLabOrdersResultsList; String? iNPMLABGetPatientLabOrdersResultsList;
String iNPMLABGetPatientLabResultsList; String? iNPMLABGetPatientLabResultsList;
String iNPMLABGetPatientRADReportList; String? iNPMLABGetPatientRADReportList;
String iNPMLABGetPatientRadResultsList; String? iNPMLABGetPatientRadResultsList;
String iNPMRadGetPatientRadOrdersCVIList; String? iNPMRadGetPatientRadOrdersCVIList;
String iNPMRadGetPatientRadOrdersList; String? iNPMRadGetPatientRadOrdersList;
String iNPMRadGetRadMedicalRecordsList; String? iNPMRadGetRadMedicalRecordsList;
String iNPGetPrescriptionDischargesList; String? iNPGetPrescriptionDischargesList;
String iNPGetPrescriptionReportList; String? iNPGetPrescriptionReportList;
String identificationNo; String? identificationNo;
bool isHomeMedicineDeliverySupported; bool? isHomeMedicineDeliverySupported;
int isInsertedOrUpdated; int? isInsertedOrUpdated;
bool isMainAcoountEqualPatienID; bool? isMainAcoountEqualPatienID;
bool isPatientAlreadyAgreed; bool? isPatientAlreadyAgreed;
bool isPatientCallBackBlackList; bool? isPatientCallBackBlackList;
bool isPatientHaveFingerPrint; bool? isPatientHaveFingerPrint;
bool isPatientOnline; bool? isPatientOnline;
bool isPatientTokenRemoved; bool? isPatientTokenRemoved;
bool isPaused; bool? isPaused;
bool isProjectWorkingHours; bool? isProjectWorkingHours;
String isStoreRateAllowed; String? isStoreRateAllowed;
String isStoreRateInserted; String? isStoreRateInserted;
String isStoreRateUpdated; String? isStoreRateUpdated;
int labRadUpdatedToRead; int? labRadUpdatedToRead;
int labReportUnreadNo; int? labReportUnreadNo;
String lakumInquiryInformationObj; String? lakumInquiryInformationObj;
LakumInquiryInformationObjVersion lakumInquiryInformationObjVersion; LakumInquiryInformationObjVersion? lakumInquiryInformationObjVersion;
String lakumResponseList; String? lakumResponseList;
String laserGetBodyPartsByCategoryList; String? laserGetBodyPartsByCategoryList;
String laserGetCategoriesList; String? laserGetCategoriesList;
String list; String? list;
int listCount; int? listCount;
int listCountDeliverd; int? listCountDeliverd;
int listCountUnDeliverd; int? listCountUnDeliverd;
String listDeviceInfo; String? listDeviceInfo;
String listFamilyAppointments; String? listFamilyAppointments;
String listLabResultsByAppNo; String? listLabResultsByAppNo;
String listLakumInquiryInformationObj; String? listLakumInquiryInformationObj;
String listOpinionGetAllPeriod; String? listOpinionGetAllPeriod;
String listOpinionGetAllServices; String? listOpinionGetAllServices;
String listOpinionGetIsAgreeValue; String? listOpinionGetIsAgreeValue;
String listOpinionGetOpinionLogin; String? listOpinionGetOpinionLogin;
String listOpinionGetRequestedSerives; String? listOpinionGetRequestedSerives;
String listOpinionGetShareServicesDetails; String? listOpinionGetShareServicesDetails;
String listOpinionUserTerms; String? listOpinionUserTerms;
String listPLO; String? listPLO;
String listPLR; String? listPLR;
String listPLSR; String? listPLSR;
String listPRM; String? listPRM;
String listPatientFamilyFiles; String? listPatientFamilyFiles;
String listPatientFileInfo; String? listPatientFileInfo;
String listRAD; String? listRAD;
String listRADAPI; String? listRADAPI;
String listActiveGetPrescriptionReportByPatientID; String? listActiveGetPrescriptionReportByPatientID;
String listAppointmentsForDentalClinic; String? listAppointmentsForDentalClinic;
String listBabyInfoResult; String? listBabyInfoResult;
String listCheckInsuranceCoverage; String? listCheckInsuranceCoverage;
String listCompanyClass; String? listCompanyClass;
String listConsentMedicalReport; String? listConsentMedicalReport;
String listDentalAppointments; String? listDentalAppointments;
String listDeviceTokenIDByAppointmentNo; String? listDeviceTokenIDByAppointmentNo;
String listDischargeDiagnosis; String? listDischargeDiagnosis;
String listDischargeMedicine; String? listDischargeMedicine;
String listDischargeSummary; String? listDischargeSummary;
String listDoctorResponse; String? listDoctorResponse;
String listDoneVaccines; String? listDoneVaccines;
String listEReferralResult; String? listEReferralResult;
String listEReferrals; String? listEReferrals;
String listGetAllPatientsLiveCareAdmin; String? listGetAllPatientsLiveCareAdmin;
String listGetDataForExcel; String? listGetDataForExcel;
String listGetMainCountID; String? listGetMainCountID;
String listGetPrescriptionReportByPatientID; String? listGetPrescriptionReportByPatientID;
String listGetSickLeave; String? listGetSickLeave;
String listHISInvoice; String? listHISInvoice;
String listHISInvoiceProcedures; String? listHISInvoiceProcedures;
String listInpatientInvoices; String? listInpatientInvoices;
String listInsuranceCheckList; String? listInsuranceCheckList;
String listInsuranceCompanies; String? listInsuranceCompanies;
String listInsuranceCompaniesGroup; String? listInsuranceCompaniesGroup;
String listInsuranceUpdateDetails; String? listInsuranceUpdateDetails;
String listInvoiceApprovalProcedureInfo; String? listInvoiceApprovalProcedureInfo;
String listIsLastSatisfactionSurveyReviewedModel; String? listIsLastSatisfactionSurveyReviewedModel;
String listLabOrderDetailsModel; String? listLabOrderDetailsModel;
String listMedicalReport; String? listMedicalReport;
String listMedicalReportApprovals; String? listMedicalReportApprovals;
String listMedicalReportStatus; String? listMedicalReportStatus;
String listMonthBloodPressureResult; String? listMonthBloodPressureResult;
String listMonthBloodPressureResultAverage; String? listMonthBloodPressureResultAverage;
String listMonthDiabtecPatientResult; String? listMonthDiabtecPatientResult;
String listMonthDiabtectResultAverage; String? listMonthDiabtectResultAverage;
String listMonthWeightMeasurementResult; String? listMonthWeightMeasurementResult;
String listMonthWeightMeasurementResultAverage; String? listMonthWeightMeasurementResultAverage;
String listOnlinePrescriptionResult; String? listOnlinePrescriptionResult;
String listOutPatientInvoices; String? listOutPatientInvoices;
String listPHRInvoice; String? listPHRInvoice;
String listPHRInvoiceItems; String? listPHRInvoiceItems;
String listPHRPaymentMethods; String? listPHRPaymentMethods;
String listPateintDetails; String? listPateintDetails;
String listPateintInformation; String? listPateintInformation;
String listPatientAdmissionInfo; String? listPatientAdmissionInfo;
String listPatientAdvanceBalanceAmount; String? listPatientAdvanceBalanceAmount;
String listPatientCallBackLogs; String? listPatientCallBackLogs;
String listPatientCallBackToUpdateFromICServer; String? listPatientCallBackToUpdateFromICServer;
String listPatientCount; String? listPatientCount;
String listPatientDashboard; String? listPatientDashboard;
String listPatientERGetAdminClinicsModel; String? listPatientERGetAdminClinicsModel;
String listPatientERGetAdminProjectsModel; String? listPatientERGetAdminProjectsModel;
String listPatientERGetAllClinicsModel; String? listPatientERGetAllClinicsModel;
String listPatientHISInvoices; String? listPatientHISInvoices;
String listPatientICProjects; String? listPatientICProjects;
String listPatientICProjectsByID; String? listPatientICProjectsByID;
String listPatientICProjectsTimings; String? listPatientICProjectsTimings;
String listPatientIDByUID; String? listPatientIDByUID;
String listPatientIDForSurveyResult; String? listPatientIDForSurveyResult;
String listPatientInfo; String? listPatientInfo;
String listPatientInfoForDDScreen; String? listPatientInfoForDDScreen;
String listPatientInfoForSickleaveReport; String? listPatientInfoForSickleaveReport;
String listPatientInsuranceCard; String? listPatientInsuranceCard;
String listPatientInsuranceCardHistory; String? listPatientInsuranceCardHistory;
String listPatientInsuranceDetails; String? listPatientInsuranceDetails;
String listPatientPHRInvoices; String? listPatientPHRInvoices;
String listPatientServicePoint; String? listPatientServicePoint;
String listPatientStatusCount; String? listPatientStatusCount;
String listPatientChatRequestMapModel; String? listPatientChatRequestMapModel;
String listPatientChatRequestModel; String? listPatientChatRequestModel;
String listPatientChatRequestVCModel; String? listPatientChatRequestVCModel;
String listPaymentMethods; String? listPaymentMethods;
String listPointServices; String? listPointServices;
String listPregnancyStagesInfo; String? listPregnancyStagesInfo;
String listProjectAvgERWaitingTime; String? listProjectAvgERWaitingTime;
String listProjectAvgERWaitingTimeHourly; String? listProjectAvgERWaitingTimeHourly;
String listRadMedicalRecords; String? listRadMedicalRecords;
String listRadMedicalRecordsAPI; String? listRadMedicalRecordsAPI;
String listRadMedicalRecordsCVI; String? listRadMedicalRecordsCVI;
String listRadMedicalRecordsCVIAPI; String? listRadMedicalRecordsCVIAPI;
String listRadMedicalRecordsResults; String? listRadMedicalRecordsResults;
String listSickLeave; String? listSickLeave;
String listTransaction; String? listTransaction;
String listVideoConferenceSessions; String? listVideoConferenceSessions;
String listWeekBloodPressureResult; String? listWeekBloodPressureResult;
String listWeekBloodPressureResultAverage; String? listWeekBloodPressureResultAverage;
String listWeekDiabtecPatientResult; String? listWeekDiabtecPatientResult;
String listWeekDiabtectResultAverage; String? listWeekDiabtectResultAverage;
String listWeekWeightMeasurementResult; String? listWeekWeightMeasurementResult;
String listWeekWeightMeasurementResultAverage; String? listWeekWeightMeasurementResultAverage;
String listYearBloodPressureResult; String? listYearBloodPressureResult;
String listYearBloodPressureResultAverage; String? listYearBloodPressureResultAverage;
String listYearDiabtecPatientResult; String? listYearDiabtecPatientResult;
String listYearDiabtecResultAverage; String? listYearDiabtecResultAverage;
String listYearWeightMeasurementResult; String? listYearWeightMeasurementResult;
String listYearWeightMeasurementResultAverage; String? listYearWeightMeasurementResultAverage;
String listEInvoiceForDental; String? listEInvoiceForDental;
String listEInvoiceForOnlineCheckIn; String? listEInvoiceForOnlineCheckIn;
String medGetActivitiesTransactionsStsList; String? medGetActivitiesTransactionsStsList;
String medGetAvgMonthTransactionsStsList; String? medGetAvgMonthTransactionsStsList;
String medGetAvgWeekTransactionsStsList; String? medGetAvgWeekTransactionsStsList;
String medGetCategoriesList; String? medGetCategoriesList;
String medGetMonthActivitiesTransactionsStsList; String? medGetMonthActivitiesTransactionsStsList;
String medGetMonthStepsTransactionsStsList; String? medGetMonthStepsTransactionsStsList;
String medGetMonthTransactionsStsList; String? medGetMonthTransactionsStsList;
String medGetPatientLastRecordList; String? medGetPatientLastRecordList;
String medGetSubCategoriesList; String? medGetSubCategoriesList;
String medGetTransactionsAndActTransactionsResult; String? medGetTransactionsAndActTransactionsResult;
String medGetTransactionsList; String? medGetTransactionsList;
String medGetWeekActivitiesTransactionsStsList; String? medGetWeekActivitiesTransactionsStsList;
String medGetWeekStepsTransactionsStsList; String? medGetWeekStepsTransactionsStsList;
String medGetWeekTransactionsStsList; String? medGetWeekTransactionsStsList;
String medGetYearActivitiesTransactionsStsList; String? medGetYearActivitiesTransactionsStsList;
String medGetYearSleepTransactionsStsList; String? medGetYearSleepTransactionsStsList;
String medGetYearStepsTransactionsStsList; String? medGetYearStepsTransactionsStsList;
String medGetYearTransactionsStsList; String? medGetYearTransactionsStsList;
String medInsertTransactionsOutputsList; String? medInsertTransactionsOutputsList;
String medicalRecordImages; String? medicalRecordImages;
int medicalReportToRead; int? medicalReportToRead;
int medicalReportUnreadNo; int? medicalReportUnreadNo;
bool missingIDCardAttachment; bool? missingIDCardAttachment;
bool missingInsuranceCardAttachment; bool? missingInsuranceCardAttachment;
bool missingMedicalReportAttachment; bool? missingMedicalReportAttachment;
bool missingOtherRelationship; bool? missingOtherRelationship;
bool missingPatientContactNo; bool? missingPatientContactNo;
bool missingPatientId; bool? missingPatientId;
bool missingPatientIdentityNumber; bool? missingPatientIdentityNumber;
bool missingPatientName; bool? missingPatientName;
bool missingReferralContactNo; bool? missingReferralContactNo;
bool missingReferralRelationship; bool? missingReferralRelationship;
bool missingReferralRequesterName; bool? missingReferralRequesterName;
String mobileNumber; String? mobileNumber;
int nationalityNumber; int? nationalityNumber;
String onlineCheckInAppointments; String? onlineCheckInAppointments;
String opinionUserAgreementContent; String? opinionUserAgreementContent;
bool orderInsert; bool? orderInsert;
String pateintInfoForUpdateList; String? pateintInfoForUpdateList;
String pateintUpatedList; String? pateintUpatedList;
String patientBirthdayCertificate; String? patientBirthdayCertificate;
String patientERCMCRequestSummaryByProject; String? patientERCMCRequestSummaryByProject;
String patientERCMCRequestWithTotal; String? patientERCMCRequestWithTotal;
String patientERCMCGetAllServicesList; String? patientERCMCGetAllServicesList;
String patientERCMCGetTransactionsForOrderList; String? patientERCMCGetTransactionsForOrderList;
String patientERCoordinates; String? patientERCoordinates;
String patientERCountOrderList; String? patientERCountOrderList;
String patientERCountsForApprovalOffice; String? patientERCountsForApprovalOffice;
String patientERDeleteOldCurrentDoctorsOutputsList; String? patientERDeleteOldCurrentDoctorsOutputsList;
String patientERDeliveryGetAllDeliverdOrderList; String? patientERDeliveryGetAllDeliverdOrderList;
String patientERDeliveryGetAllOrderList; String? patientERDeliveryGetAllOrderList;
bool patientERDeliveryIsOrderInserted; bool? patientERDeliveryIsOrderInserted;
bool patientERDeliveryIsOrderUpdated; bool? patientERDeliveryIsOrderUpdated;
bool patientERDeliveryIsPausedChanged; bool? patientERDeliveryIsPausedChanged;
String patientERDeliveryNextOrder; String? patientERDeliveryNextOrder;
int patientERDeliveryOrderInsert; int? patientERDeliveryOrderInsert;
int patientERDeliveryUpdateOrderStatus; int? patientERDeliveryUpdateOrderStatus;
bool patientERDriverUpdate; bool? patientERDriverUpdate;
String patientERExacartCheckIsDispenseAccpetableList; String? patientERExacartCheckIsDispenseAccpetableList;
String patientERExacartGetDispenseQuantitiesByOrderIDList; String? patientERExacartGetDispenseQuantitiesByOrderIDList;
String patientERExacartGetOrderDetailsByePharmacyOrderNoList; String? patientERExacartGetOrderDetailsByePharmacyOrderNoList;
String patientERExacartGetOrderDetailsList; String? patientERExacartGetOrderDetailsList;
String patientERExacartGetTotalDispenseQuantitiesByPresNoList; String? patientERExacartGetTotalDispenseQuantitiesByPresNoList;
bool patientERExacartIsDispenseAdded; bool? patientERExacartIsDispenseAdded;
String patientERExacartIsDispenseAddedList; String? patientERExacartIsDispenseAddedList;
bool patientERExacartIsOrderCompleted; bool? patientERExacartIsOrderCompleted;
String patientERGetAdminByProjectAndRoleList; String? patientERGetAdminByProjectAndRoleList;
String patientERGetAdminProjectsList; String? patientERGetAdminProjectsList;
String patientERGetAllDriversList; String? patientERGetAllDriversList;
String patientERGetAllNeedAproveStatusList; String? patientERGetAllNeedAproveStatusList;
String patientERGetAllPresOrdersStatusList; String? patientERGetAllPresOrdersStatusList;
String patientERGetAllProjectsList; String? patientERGetAllProjectsList;
String patientERGetArchiveInformationList; String? patientERGetArchiveInformationList;
String patientERGetAskDoctorTotalByDateFilterList; String? patientERGetAskDoctorTotalByDateFilterList;
String patientERGetBookScheduleConfigsList; String? patientERGetBookScheduleConfigsList;
String patientERGetClinicAndTimeAndEpisodeForAppointmentList; String? patientERGetClinicAndTimeAndEpisodeForAppointmentList;
String patientERGetClinicAndTimeForDischargeList; String? patientERGetClinicAndTimeForDischargeList;
String patientERGetDashboardDataforApporvalSectionForAdminList; String? patientERGetDashboardDataforApporvalSectionForAdminList;
String patientERGetDashboardDataforApporvalSectionList; String? patientERGetDashboardDataforApporvalSectionList;
String patientERGetDashboardDataforHHCSectionForAdminList; String? patientERGetDashboardDataforHHCSectionForAdminList;
String patientERGetDashboardDataforHHCSectionList; String? patientERGetDashboardDataforHHCSectionList;
String patientERGetDashboardDataforPrescriptionSectionForAdminList; String? patientERGetDashboardDataforPrescriptionSectionForAdminList;
String patientERGetDashboardDataforPrescriptionSectionList; String? patientERGetDashboardDataforPrescriptionSectionList;
String patientERGetDoctorDashboardDataModelList; String? patientERGetDoctorDashboardDataModelList;
String patientERGetDriverLocationList; String? patientERGetDriverLocationList;
String patientERGetInsuranceCardRequestByDateFilterList; String? patientERGetInsuranceCardRequestByDateFilterList;
String patientERGetLiveCareSummaryBookedAppoinmentStatusList; String? patientERGetLiveCareSummaryBookedAppoinmentStatusList;
String patientERGetLiveCareSummaryCovidList; String? patientERGetLiveCareSummaryCovidList;
String patientERGetLiveCareSummaryForCMCList; String? patientERGetLiveCareSummaryForCMCList;
String patientERGetLiveCareSummaryForHHCList; String? patientERGetLiveCareSummaryForHHCList;
String patientERGetLiveCareSummaryForHomeDeliveryList; String? patientERGetLiveCareSummaryForHomeDeliveryList;
String patientERGetLiveCareSummaryForInsuranceCardRequestList; String? patientERGetLiveCareSummaryForInsuranceCardRequestList;
String patientERGetLiveCareSummaryForNewFilesList; String? patientERGetLiveCareSummaryForNewFilesList;
String patientERGetLiveCareSummaryForOnlinePaymetRequestList; String? patientERGetLiveCareSummaryForOnlinePaymetRequestList;
String patientERGetLiveCareSummaryForOnlinePharmacyOrdersList; String? patientERGetLiveCareSummaryForOnlinePharmacyOrdersList;
String patientERGetLiveCareSummaryForTrasnportationList; String? patientERGetLiveCareSummaryForTrasnportationList;
String patientERGetLiveCareSummaryLiveCareCountsList; String? patientERGetLiveCareSummaryLiveCareCountsList;
String patientERGetMedicalRequestTotalByDateFilterList; String? patientERGetMedicalRequestTotalByDateFilterList;
String patientERGetNearestPendingOrdersList; String? patientERGetNearestPendingOrdersList;
String patientERGetNeedAproveHistoryForOrderList; String? patientERGetNeedAproveHistoryForOrderList;
String patientERGetNeedAprovePendingOrdersList; String? patientERGetNeedAprovePendingOrdersList;
String patientERGetNeedAproveStatusStatisticsList; String? patientERGetNeedAproveStatusStatisticsList;
String patientERGetPatientAllPresOrdersList; String? patientERGetPatientAllPresOrdersList;
String patientERGetPendingPatientsCountList; String? patientERGetPendingPatientsCountList;
String patientERGetPresOrdersHistoryForAdminList; String? patientERGetPresOrdersHistoryForAdminList;
String patientERGetPresOrdersHistoryForOrderList; String? patientERGetPresOrdersHistoryForOrderList;
String patientERGetPresOrdersStatusStatisticsList; String? patientERGetPresOrdersStatusStatisticsList;
String patientERHHCRequest; String? patientERHHCRequest;
String patientERHHCRequestSummaryByProject; String? patientERHHCRequestSummaryByProject;
String patientERHHCRequestWithTotal; String? patientERHHCRequestWithTotal;
String patientERHHCGetAllServicesList; String? patientERHHCGetAllServicesList;
String patientERHHCGetTransactionsForOrderList; String? patientERHHCGetTransactionsForOrderList;
String patientERHomeDeliveryCounts; String? patientERHomeDeliveryCounts;
bool patientERInsertDriver; bool? patientERInsertDriver;
String patientERInsertNewCurrentDoctorsOutputsList; String? patientERInsertNewCurrentDoctorsOutputsList;
String patientERInsuranceStatusCountList; String? patientERInsuranceStatusCountList;
bool patientERIsNearestProjectUpdated; bool? patientERIsNearestProjectUpdated;
bool patientERIsNeedAproveReturnedToQueue; bool? patientERIsNeedAproveReturnedToQueue;
bool patientERIsNeedAproveUpdated; bool? patientERIsNeedAproveUpdated;
bool patientERIsOrderClientRequestUpdated; bool? patientERIsOrderClientRequestUpdated;
bool patientERIsOrderReturnedToQueue; bool? patientERIsOrderReturnedToQueue;
bool patientERIsPresOrderInserted; bool? patientERIsPresOrderInserted;
bool patientERIsPresOrderUpdated; bool? patientERIsPresOrderUpdated;
bool patientERIsProjectUpdated; bool? patientERIsProjectUpdated;
String patientERNotCompletedDetails; String? patientERNotCompletedDetails;
String patientERPatientsCountByCallStatus; String? patientERPatientsCountByCallStatus;
String patientERPeakHourCounts; String? patientERPeakHourCounts;
String patientERPresOrderInfo; String? patientERPresOrderInfo;
String patientERPrescriptionCounts; String? patientERPrescriptionCounts;
String patientERProjectsContribution; String? patientERProjectsContribution;
String patientERRRTGetAllQuestionsList; String? patientERRRTGetAllQuestionsList;
String patientERRRTGetAllTransportationMethodList; String? patientERRRTGetAllTransportationMethodList;
String patientERRRTGetPickUpRequestByPresOrderIDList; String? patientERRRTGetPickUpRequestByPresOrderIDList;
String patientERRealRRTGetAllServicesList; String? patientERRealRRTGetAllServicesList;
String patientERRealRRTGetOrderDetailsList; String? patientERRealRRTGetOrderDetailsList;
String patientERRealRRTGetTransactionsForOrderList; String? patientERRealRRTGetTransactionsForOrderList;
bool patientERRealRRTIsTransInserted; bool? patientERRealRRTIsTransInserted;
String patientERRequestList; String? patientERRequestList;
String patientERTransportationRequestWithTotal; String? patientERTransportationRequestWithTotal;
String patientERealRRTGetServicePriceList; String? patientERealRRTGetServicePriceList;
String patientInfoByAdmissionNoList; String? patientInfoByAdmissionNoList;
String patientMonitorGetPatientHeartRate; String? patientMonitorGetPatientHeartRate;
int patientNotServedCounts; int? patientNotServedCounts;
String patientPrescriptionList; String? patientPrescriptionList;
String patientAllergies; String? patientAllergies;
String patientCheckAppointmentValidationList; String? patientCheckAppointmentValidationList;
String patientLoginTokenList; String? patientLoginTokenList;
String patientQRLoginInfoList; String? patientQRLoginInfoList;
String patientSELECTDeviceIMEIbyIMEIList; String? patientSELECTDeviceIMEIbyIMEIList;
String pharmList; String? pharmList;
String prefLang; String? prefLang;
int radReportUnreadNo; int? radReportUnreadNo;
String radGetPatientRadOrdersForDentalList; String? radGetPatientRadOrdersForDentalList;
int referralNumber; int? referralNumber;
String reminderConfigurations; String? reminderConfigurations;
String requestNo; String? requestNo;
int rowCount; int? rowCount;
String servicePrivilegeList; String? servicePrivilegeList;
String shareFamilyFileObj; String? shareFamilyFileObj;
String status; String? status;
int successCode; int? successCode;
String surveyRate; String? surveyRate;
String symptomCheckerConditionList; String? symptomCheckerConditionList;
String symptomCheckerGetAllDefaultQuestionsList; String? symptomCheckerGetAllDefaultQuestionsList;
String symptomCheckerGetBodyPartSymptomsList; String? symptomCheckerGetBodyPartSymptomsList;
String symptomCheckerGetBodyPartsByCodeList; String? symptomCheckerGetBodyPartsByCodeList;
String symptomCheckerGetBodyPartsList; String? symptomCheckerGetBodyPartsList;
String symptomCheckerJsonResponseInString; String? symptomCheckerJsonResponseInString;
int timerTime; int? timerTime;
int totalAdvanceBalanceAmount; int? totalAdvanceBalanceAmount;
int totalPatientsCount; int? totalPatientsCount;
int totalPendingApprovalCount; int? totalPendingApprovalCount;
int totalUnUsedCount; int? totalUnUsedCount;
int transactionNo; int? transactionNo;
int unReadCounts; int? unReadCounts;
bool updateStatus; bool? updateStatus;
String userAgreementContent; String? userAgreementContent;
int yahalaAccountNo; int? yahalaAccountNo;
bool check24HourComplaint; bool? check24HourComplaint;
String currency; String? currency;
String message; String? message;
int patientID; int? patientID;
int returnValue; int? returnValue;
String returnValueStr; String? returnValueStr;
int statusCode; int? statusCode;
LacumAccountInformation( LacumAccountInformation(
{this.date, {this.date,
@ -935,7 +935,7 @@ class LacumAccountInformation {
lakumInquiryInformationObj = json['LakumInquiryInformationObj']; lakumInquiryInformationObj = json['LakumInquiryInformationObj'];
lakumInquiryInformationObjVersion = lakumInquiryInformationObjVersion =
json['LakumInquiryInformationObjVersion'] != null json['LakumInquiryInformationObjVersion'] != null
? new LakumInquiryInformationObjVersion.fromJson( ? LakumInquiryInformationObjVersion.fromJson(
json['LakumInquiryInformationObjVersion']) json['LakumInquiryInformationObjVersion'])
: null; : null;
lakumResponseList = json['LakumResponseList']; lakumResponseList = json['LakumResponseList'];
@ -1477,7 +1477,7 @@ class LacumAccountInformation {
data['LakumInquiryInformationObj'] = this.lakumInquiryInformationObj; data['LakumInquiryInformationObj'] = this.lakumInquiryInformationObj;
if (this.lakumInquiryInformationObjVersion != null) { if (this.lakumInquiryInformationObjVersion != null) {
data['LakumInquiryInformationObjVersion'] = data['LakumInquiryInformationObjVersion'] =
this.lakumInquiryInformationObjVersion.toJson(); this.lakumInquiryInformationObjVersion!.toJson();
} }
data['LakumResponseList'] = this.lakumResponseList; data['LakumResponseList'] = this.lakumResponseList;
data['Laser_GetBodyPartsByCategoryList'] = data['Laser_GetBodyPartsByCategoryList'] =

@ -2,36 +2,36 @@ import 'PointsAmountPerYear.dart';
import 'PointsDetails.dart'; import 'PointsDetails.dart';
class LakumInquiryInformationObjVersion { class LakumInquiryInformationObjVersion {
num accountNumber; num? accountNumber;
String accountStatus; String? accountStatus;
String barCode; String? barCode;
num consumedPoints; num? consumedPoints;
String consumedPointsAmount; String? consumedPointsAmount;
List<PointsAmountPerYear> consumedPointsAmountPerYear; List<PointsAmountPerYear>? consumedPointsAmountPerYear;
List<PointsDetails> consumedPointsDetails; List<PointsDetails>? consumedPointsDetails;
String createdDate; String? createdDate;
num expiredPoints; num? expiredPoints;
String expiryDate; String? expiryDate;
num gainedPoints; num? gainedPoints;
num gainedPointsAmount; num? gainedPointsAmount;
List<PointsAmountPerYear> gainedPointsAmountPerYear; List<PointsAmountPerYear>? gainedPointsAmountPerYear;
List<PointsDetails> gainedPointsDetails; List<PointsDetails>? gainedPointsDetails;
String lakumMessageStatus; String? lakumMessageStatus;
String memberName; String? memberName;
String memberUniversalId; String? memberUniversalId;
String mobileNumber; String? mobileNumber;
num pointsBalance; num? pointsBalance;
num pointsBalanceAmount; num? pointsBalanceAmount;
num pointsWillBeExpired; num? pointsWillBeExpired;
String prefLang; String? prefLang;
num statusCode; num? statusCode;
num transferPoints; num? transferPoints;
List<PointsAmountPerYear> transferPointsAmountPerYear; List<PointsAmountPerYear>? transferPointsAmountPerYear;
List<PointsDetails> transferPointsDetails; List<PointsDetails>? transferPointsDetails;
dynamic waitingPoints; dynamic waitingPoints;
dynamic loyalityAmount; dynamic loyalityAmount;
dynamic loyalityPoints; dynamic loyalityPoints;
num purchaseRate; num? purchaseRate;
LakumInquiryInformationObjVersion( LakumInquiryInformationObjVersion(
{this.accountNumber, {this.accountNumber,
@ -72,15 +72,15 @@ class LakumInquiryInformationObjVersion {
consumedPoints = json['ConsumedPoints']; consumedPoints = json['ConsumedPoints'];
consumedPointsAmount = json['ConsumedPointsAmount']; consumedPointsAmount = json['ConsumedPointsAmount'];
if (json['ConsumedPointsAmountPerYear'] != null) { if (json['ConsumedPointsAmountPerYear'] != null) {
consumedPointsAmountPerYear = new List<PointsAmountPerYear>(); consumedPointsAmountPerYear = <PointsAmountPerYear>[];
json['ConsumedPointsAmountPerYear'].forEach((v) { json['ConsumedPointsAmountPerYear'].forEach((v) {
consumedPointsAmountPerYear.add(PointsAmountPerYear.fromJson(v)); consumedPointsAmountPerYear!.add(PointsAmountPerYear.fromJson(v));
}); });
} }
if (json['ConsumedPointsDetails'] != null) { if (json['ConsumedPointsDetails'] != null) {
consumedPointsDetails = new List<PointsDetails>(); consumedPointsDetails = <PointsDetails>[];
json['ConsumedPointsDetails'].forEach((v) { json['ConsumedPointsDetails'].forEach((v) {
consumedPointsDetails.add(PointsDetails.fromJson(v)); consumedPointsDetails!.add(PointsDetails.fromJson(v));
}); });
} }
createdDate = json['CreatedDate']; createdDate = json['CreatedDate'];
@ -89,15 +89,15 @@ class LakumInquiryInformationObjVersion {
gainedPoints = json['GainedPoints']; gainedPoints = json['GainedPoints'];
gainedPointsAmount = json['GainedPointsAmount']; gainedPointsAmount = json['GainedPointsAmount'];
if (json['GainedPointsAmountPerYear'] != null) { if (json['GainedPointsAmountPerYear'] != null) {
gainedPointsAmountPerYear = new List<PointsAmountPerYear>(); gainedPointsAmountPerYear = <PointsAmountPerYear>[];
json['GainedPointsAmountPerYear'].forEach((v) { json['GainedPointsAmountPerYear'].forEach((v) {
gainedPointsAmountPerYear.add(PointsAmountPerYear.fromJson(v)); gainedPointsAmountPerYear!.add(PointsAmountPerYear.fromJson(v));
}); });
} }
if (json['GainedPointsDetails'] != null) { if (json['GainedPointsDetails'] != null) {
gainedPointsDetails = new List<PointsDetails>(); gainedPointsDetails = <PointsDetails>[];
json['GainedPointsDetails'].forEach((v) { json['GainedPointsDetails'].forEach((v) {
gainedPointsDetails.add(PointsDetails.fromJson(v)); gainedPointsDetails!.add(PointsDetails.fromJson(v));
}); });
} }
lakumMessageStatus = json['LakumMessageStatus']; lakumMessageStatus = json['LakumMessageStatus'];
@ -111,15 +111,15 @@ class LakumInquiryInformationObjVersion {
statusCode = json['StatusCode']; statusCode = json['StatusCode'];
transferPoints = json['TransferPoints']; transferPoints = json['TransferPoints'];
if (json['TransferPointsAmountPerYear'] != null) { if (json['TransferPointsAmountPerYear'] != null) {
transferPointsAmountPerYear = new List<PointsAmountPerYear>(); transferPointsAmountPerYear = <PointsAmountPerYear>[];
json['TransferPointsAmountPerYear'].forEach((v) { json['TransferPointsAmountPerYear'].forEach((v) {
transferPointsAmountPerYear.add(PointsAmountPerYear.fromJson(v)); transferPointsAmountPerYear!.add(PointsAmountPerYear.fromJson(v));
}); });
} }
if (json['TransferPointsDetails'] != null) { if (json['TransferPointsDetails'] != null) {
transferPointsDetails = new List<PointsDetails>(); transferPointsDetails = <PointsDetails>[];
json['TransferPointsDetails'].forEach((v) { json['TransferPointsDetails'].forEach((v) {
transferPointsDetails.add(PointsDetails.fromJson(v)); transferPointsDetails!.add(PointsDetails.fromJson(v));
}); });
} }
waitingPoints = json['WaitingPoints']; waitingPoints = json['WaitingPoints'];
@ -137,11 +137,11 @@ class LakumInquiryInformationObjVersion {
data['ConsumedPointsAmount'] = this.consumedPointsAmount; data['ConsumedPointsAmount'] = this.consumedPointsAmount;
if (this.consumedPointsAmountPerYear != null) { if (this.consumedPointsAmountPerYear != null) {
data['ConsumedPointsAmountPerYear'] = data['ConsumedPointsAmountPerYear'] =
this.consumedPointsAmountPerYear.map((v) => v).toList(); this.consumedPointsAmountPerYear!.map((v) => v).toList();
} }
if (this.consumedPointsDetails != null) { if (this.consumedPointsDetails != null) {
data['ConsumedPointsDetails'] = data['ConsumedPointsDetails'] =
this.consumedPointsDetails.map((v) => v).toList(); this.consumedPointsDetails!.map((v) => v).toList();
} }
data['CreatedDate'] = this.createdDate; data['CreatedDate'] = this.createdDate;
data['ExpiredPoints'] = this.expiredPoints; data['ExpiredPoints'] = this.expiredPoints;
@ -150,11 +150,11 @@ class LakumInquiryInformationObjVersion {
data['GainedPointsAmount'] = this.gainedPointsAmount; data['GainedPointsAmount'] = this.gainedPointsAmount;
if (this.gainedPointsAmountPerYear != null) { if (this.gainedPointsAmountPerYear != null) {
data['GainedPointsAmountPerYear'] = data['GainedPointsAmountPerYear'] =
this.gainedPointsAmountPerYear.map((v) => v).toList(); this.gainedPointsAmountPerYear!.map((v) => v).toList();
} }
if (this.gainedPointsDetails != null) { if (this.gainedPointsDetails != null) {
data['GainedPointsDetails'] = data['GainedPointsDetails'] =
this.gainedPointsDetails.map((v) => v).toList(); this.gainedPointsDetails!.map((v) => v).toList();
} }
data['LakumMessageStatus'] = this.lakumMessageStatus; data['LakumMessageStatus'] = this.lakumMessageStatus;
data['MemberName'] = this.memberName; data['MemberName'] = this.memberName;
@ -168,11 +168,11 @@ class LakumInquiryInformationObjVersion {
data['TransferPoints'] = this.transferPoints; data['TransferPoints'] = this.transferPoints;
if (this.transferPointsAmountPerYear != null) { if (this.transferPointsAmountPerYear != null) {
data['TransferPointsAmountPerYear'] = data['TransferPointsAmountPerYear'] =
this.transferPointsAmountPerYear.map((v) => v).toList(); this.transferPointsAmountPerYear!.map((v) => v).toList();
} }
if (this.transferPointsDetails != null) { if (this.transferPointsDetails != null) {
data['TransferPointsDetails'] = data['TransferPointsDetails'] =
this.transferPointsDetails.map((v) => v).toList(); this.transferPointsDetails!.map((v) => v).toList();
} }
data['WaitingPoints'] = this.waitingPoints; data['WaitingPoints'] = this.waitingPoints;
data['loyalityAmount'] = this.loyalityAmount; data['loyalityAmount'] = this.loyalityAmount;

@ -1,8 +1,8 @@
class ListUserAgreement { class ListUserAgreement {
String userAgreementLAKUM; String? userAgreementLAKUM;
String userAgreementLAKUMn; String? userAgreementLAKUMn;
String userAgreementTxt; String? userAgreementTxt;
String userAgreementTxtn; String? userAgreementTxtn;
ListUserAgreement( ListUserAgreement(
{this.userAgreementLAKUM, {this.userAgreementLAKUM,

@ -1,24 +1,24 @@
import 'PharmacyImageObject.dart'; import 'PharmacyImageObject.dart';
class Manufacturer { class Manufacturer {
String id; String? id;
String name; String? name;
String namen; String? namen;
// List<LocalizedNames> localizedNames; // List<LocalizedNames> localizedNames;
String description; String? description;
int manufacturerTemplateId; int? manufacturerTemplateId;
String metaKeywords; String? metaKeywords;
String metaDescription; String? metaDescription;
String metaTitle; String? metaTitle;
int pageSize; int? pageSize;
String pageSizeOptions; String? pageSizeOptions;
String priceRanges; String? priceRanges;
bool published; bool? published;
bool deleted; bool? deleted;
int displayOrder; int? displayOrder;
String createdOnUtc; String? createdOnUtc;
String updatedOnUtc; String? updatedOnUtc;
PharmacyImageObject image; PharmacyImageObject? image;
Manufacturer( Manufacturer(
{this.id, {this.id,
@ -91,7 +91,7 @@ class Manufacturer {
data['created_on_utc'] = this.createdOnUtc; data['created_on_utc'] = this.createdOnUtc;
data['updated_on_utc'] = this.updatedOnUtc; data['updated_on_utc'] = this.updatedOnUtc;
if (this.image != null) { if (this.image != null) {
data['image'] = this.image.toJson(); data['image'] = this.image!.toJson();
} }
return data; return data;
} }

@ -10,14 +10,14 @@ class PharmacyAddressesModel {
this.customers, this.customers,
}); });
List<Customer> customers; List<Customer>? customers;
factory PharmacyAddressesModel.fromJson(Map<String, dynamic> json) => PharmacyAddressesModel( factory PharmacyAddressesModel.fromJson(Map<String, dynamic> json) => PharmacyAddressesModel(
customers: List<Customer>.from(json["customers"].map((x) => Customer.fromJson(x))), customers: List<Customer>.from(json["customers"].map((x) => Customer.fromJson(x))),
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
"customers": List<dynamic>.from(customers.map((x) => x.toJson())), "customers": List<dynamic>.from(customers!.map((x) => x.toJson())),
}; };
} }
@ -26,14 +26,14 @@ class Customer {
this.addresses, this.addresses,
}); });
List<Address> addresses; List<Address>? addresses;
factory Customer.fromJson(Map<String, dynamic> json) => Customer( factory Customer.fromJson(Map<String, dynamic> json) => Customer(
addresses: List<Address>.from(json["addresses"].map((x) => Address.fromJson(x))), addresses: List<Address>.from(json["addresses"].map((x) => Address.fromJson(x))),
); );
Map<String, dynamic> toJson() => { Map<String, dynamic> toJson() => {
"addresses": List<dynamic>.from(addresses.map((x) => x.toJson())), "addresses": List<dynamic>.from(addresses!.map((x) => x.toJson())),
}; };
} }
@ -59,35 +59,35 @@ class Address {
this.latLong, this.latLong,
}); });
String id; String? id;
FirstName firstName; FirstName? firstName;
LastName lastName; LastName? lastName;
Email email; Email? email;
dynamic company; dynamic company;
int countryId; int? countryId;
Country country; Country? country;
dynamic stateProvinceId; dynamic stateProvinceId;
City city; City? city;
String address1; String? address1;
String address2; String? address2;
String zipPostalCode; String? zipPostalCode;
String phoneNumber; String? phoneNumber;
dynamic faxNumber; dynamic faxNumber;
String customerAttributes; String? customerAttributes;
DateTime createdOnUtc; DateTime? createdOnUtc;
dynamic province; dynamic province;
String latLong; String? latLong;
factory Address.fromJson(Map<String, dynamic> json) => Address( factory Address.fromJson(Map<String, dynamic> json) => Address(
id: json["id"], id: json["id"],
firstName: firstNameValues.map[json["first_name"]], firstName: firstNameValues.map![json["first_name"]],
lastName: lastNameValues.map[json["last_name"]], lastName: lastNameValues.map![json["last_name"]],
email: emailValues.map[json["email"]], email: emailValues.map![json["email"]],
company: json["company"], company: json["company"],
countryId: json["country_id"], countryId: json["country_id"],
country: countryValues.map[json["country"]], country: countryValues.map![json["country"]],
stateProvinceId: json["state_province_id"], stateProvinceId: json["state_province_id"],
city: cityValues.map[json["city"]], city: cityValues.map![json["city"]],
address1: json["address1"], address1: json["address1"],
address2: json["address2"], address2: json["address2"],
zipPostalCode: json["zip_postal_code"], zipPostalCode: json["zip_postal_code"],
@ -115,7 +115,7 @@ class Address {
"phone_number": phoneNumber, "phone_number": phoneNumber,
"fax_number": faxNumber, "fax_number": faxNumber,
"customer_attributes": customerAttributes, "customer_attributes": customerAttributes,
"created_on_utc": createdOnUtc.toIso8601String(), "created_on_utc": createdOnUtc!.toIso8601String(),
"province": province, "province": province,
"lat_long": latLong, "lat_long": latLong,
}; };
@ -156,15 +156,15 @@ final lastNameValues = EnumValues({
}); });
class EnumValues<T> { class EnumValues<T> {
Map<String, T> map; Map<String, T>? map;
Map<T, String> reverseMap; Map<T, String>? reverseMap;
EnumValues(this.map); EnumValues(this.map);
Map<T, String> get reverse { Map<T, String> get reverse {
if (reverseMap == null) { if (reverseMap == null) {
reverseMap = map.map((k, v) => new MapEntry(v, k)); reverseMap = map!.map((k, v) => new MapEntry(v, k));
} }
return reverseMap; return reverseMap!;
} }
} }

@ -1,9 +1,9 @@
class PharmacyImageObject { class PharmacyImageObject {
int id; int? id;
int position; int? position;
String src; String? src;
String thumb; String? thumb;
String attachment; String? attachment;
PharmacyImageObject({this.id, this.position, this.src, this.thumb, this.attachment}); PharmacyImageObject({this.id, this.position, this.src, this.thumb, this.attachment});

@ -5,115 +5,115 @@ import 'Reviews.dart';
class PharmacyProduct { class PharmacyProduct {
dynamic id; dynamic id;
bool visibleIndividually; bool? visibleIndividually;
dynamic name; dynamic name;
dynamic namen; dynamic namen;
dynamic shortDescription; dynamic shortDescription;
dynamic shortDescriptionn; dynamic shortDescriptionn;
dynamic fullDescription; dynamic fullDescription;
dynamic fullDescriptionn; dynamic fullDescriptionn;
bool markasNew; bool? markasNew;
bool showOnHomePage; bool? showOnHomePage;
dynamic metaKeywords; dynamic metaKeywords;
dynamic metaDescription; dynamic metaDescription;
dynamic metaTitle; dynamic metaTitle;
bool allowCustomerReviews; bool? allowCustomerReviews;
int approvedRatingSum; int? approvedRatingSum;
int notApprovedRatingSum; int? notApprovedRatingSum;
dynamic approvedTotalReviews; dynamic approvedTotalReviews;
int notApprovedTotalReviews; int? notApprovedTotalReviews;
dynamic sku; dynamic sku;
bool isRx; bool? isRx;
bool prescriptionRequired; bool? prescriptionRequired;
dynamic rxMessage; dynamic rxMessage;
dynamic rxMessagen; dynamic rxMessagen;
String manufacturerPartNumber; String? manufacturerPartNumber;
String gtin; String? gtin;
bool isGiftCard; bool? isGiftCard;
bool requireOtherProducts; bool? requireOtherProducts;
bool automaticallyAddRequiredProducts; bool? automaticallyAddRequiredProducts;
bool isDownload; bool? isDownload;
bool unlimitedDownloads; bool? unlimitedDownloads;
int maxNumberOfDownloads; int? maxNumberOfDownloads;
String downloadExpirationDays; String? downloadExpirationDays;
bool hasSampleDownload; bool? hasSampleDownload;
bool hasUserAgreement; bool? hasUserAgreement;
bool isRecurring; bool? isRecurring;
int recurringCycleLength; int? recurringCycleLength;
int recurringTotalCycles; int? recurringTotalCycles;
bool isRental; bool? isRental;
int rentalPriceLength; int? rentalPriceLength;
bool isShipEnabled; bool? isShipEnabled;
bool isFreeShipping; bool? isFreeShipping;
bool shipSeparately; bool? shipSeparately;
double additionalShippingCharge; double? additionalShippingCharge;
bool isTaxExempt; bool? isTaxExempt;
bool isTelecommunicationsOrBroadcastingOrElectronicServices; bool? isTelecommunicationsOrBroadcastingOrElectronicServices;
bool useMultipleWarehouses; bool? useMultipleWarehouses;
int manageInventoryMethodId; int? manageInventoryMethodId;
int stockQuantity; int? stockQuantity;
String stockAvailability; String? stockAvailability;
String stockAvailabilityn; String? stockAvailabilityn;
bool displayStockAvailability; bool? displayStockAvailability;
bool displayStockQuantity; bool? displayStockQuantity;
int minStockQuantity; int? minStockQuantity;
int notifyAdminForQuantityBelow; int? notifyAdminForQuantityBelow;
bool allowBackInStockSubscriptions; bool? allowBackInStockSubscriptions;
int orderMinimumQuantity; int? orderMinimumQuantity;
int orderMaximumQuantity; int? orderMaximumQuantity;
String allowedQuantities; String? allowedQuantities;
bool allowAddingOnlyExistingAttributeCombinations; bool? allowAddingOnlyExistingAttributeCombinations;
bool disableBuyButton; bool? disableBuyButton;
bool disableWishlistButton; bool? disableWishlistButton;
bool availableForPreOrder; bool? availableForPreOrder;
String preOrderAvailabilityStartDateTimeUtc; String? preOrderAvailabilityStartDateTimeUtc;
bool callForPrice; bool? callForPrice;
double price; double? price;
double oldPrice; double? oldPrice;
double productCost; double? productCost;
String specialPrice; String? specialPrice;
String specialPriceStartDateTimeUtc; String? specialPriceStartDateTimeUtc;
String specialPriceEndDateTimeUtc; String? specialPriceEndDateTimeUtc;
bool customerEntersPrice; bool? customerEntersPrice;
double minimumCustomerEnteredPrice; double? minimumCustomerEnteredPrice;
double maximumCustomerEnteredPrice; double? maximumCustomerEnteredPrice;
bool basepriceEnabled; bool? basepriceEnabled;
double basepriceAmount; double? basepriceAmount;
double basepriceBaseAmount; double? basepriceBaseAmount;
bool hasTierPrices; bool? hasTierPrices;
bool hasDiscountsApplied; bool? hasDiscountsApplied;
String discountName; String? discountName;
String discountNamen; String? discountNamen;
String discountDescription; String? discountDescription;
String discountDescriptionn; String? discountDescriptionn;
String discountPercentage; String? discountPercentage;
String currency; String? currency;
String currencyn; String? currencyn;
double weight; double? weight;
double length; double? length;
double width; double? width;
double height; double? height;
String availableStartDateTimeUtc; String? availableStartDateTimeUtc;
String availableEndDateTimeUtc; String? availableEndDateTimeUtc;
int displayOrder; int? displayOrder;
bool published; bool? published;
bool deleted; bool? deleted;
String createdOnUtc; String? createdOnUtc;
String updatedOnUtc; String? updatedOnUtc;
String productType; String? productType;
int parentGroupedProductId; int? parentGroupedProductId;
List<int> roleIds; List<int>? roleIds;
List<int> discountIds; List<int>? discountIds;
List<int> storeIds; List<int>? storeIds;
List<int> manufacturerIds; List<int>? manufacturerIds;
List<Reviews> reviews; List<Reviews>? reviews;
List<PharmacyImageObject> images; List<PharmacyImageObject>? images;
List<dynamic> attributes; List<dynamic>? attributes;
List<Specifications> specifications; List<Specifications>? specifications;
List<dynamic> associatedProductIds; List<dynamic>? associatedProductIds;
List<dynamic> tags; List<dynamic>? tags;
int vendorId; int? vendorId;
String seName; String? seName;
PharmacyProduct( PharmacyProduct(
{this.id, {this.id,
@ -331,63 +331,63 @@ class PharmacyProduct {
productType = json['product_type']; productType = json['product_type'];
parentGroupedProductId = json['parent_grouped_product_id']; parentGroupedProductId = json['parent_grouped_product_id'];
if (json['role_ids'] != null) { if (json['role_ids'] != null) {
roleIds = new List<int>(); roleIds = [];
json['role_ids'].forEach((v) { json['role_ids'].forEach((v) {
roleIds.add(v); roleIds!.add(v);
}); });
} }
if (json['discount_ids'] != null) { if (json['discount_ids'] != null) {
discountIds = new List<int>(); discountIds = [];
json['discount_ids'].forEach((v) { json['discount_ids'].forEach((v) {
discountIds.add(v); discountIds!.add(v);
}); });
} }
if (json['store_ids'] != null) { if (json['store_ids'] != null) {
storeIds = new List<int>(); storeIds = [];
json['store_ids'].forEach((v) { json['store_ids'].forEach((v) {
storeIds.add(v); storeIds!.add(v);
}); });
} }
if (json['manufacturer_ids'] != null) { if (json['manufacturer_ids'] != null) {
manufacturerIds = new List<int>(); manufacturerIds =[];
json['manufacturer_ids'].forEach((v) { json['manufacturer_ids'].forEach((v) {
manufacturerIds.add(v); manufacturerIds!.add(v);
}); });
} }
if (json['reviews'] != null) { if (json['reviews'] != null) {
reviews = new List<Reviews>(); reviews = [];
json['reviews'].forEach((v) { json['reviews'].forEach((v) {
reviews.add(new Reviews.fromJson(v)); reviews!.add(new Reviews.fromJson(v));
}); });
} }
if (json['images'] != null) { if (json['images'] != null) {
images = new List<PharmacyImageObject>(); images =[];
json['images'].forEach((v) { json['images'].forEach((v) {
images.add(new PharmacyImageObject.fromJson(v)); images!.add(new PharmacyImageObject.fromJson(v));
}); });
} }
if (json['attributes'] != null) { if (json['attributes'] != null) {
attributes = new List<dynamic>(); attributes = [];
json['attributes'].forEach((v) { json['attributes'].forEach((v) {
attributes.add(v); attributes!.add(v);
}); });
} }
if (json['specifications'] != null) { if (json['specifications'] != null) {
specifications = new List<Specifications>(); specifications = [];
json['specifications'].forEach((v) { json['specifications'].forEach((v) {
specifications.add(new Specifications.fromJson(v)); specifications!.add(new Specifications.fromJson(v));
}); });
} }
if (json['associated_product_ids'] != null) { if (json['associated_product_ids'] != null) {
associatedProductIds = new List<String>(); associatedProductIds =[];
json['associated_product_ids'].forEach((v) { json['associated_product_ids'].forEach((v) {
associatedProductIds.add(v); associatedProductIds!.add(v);
}); });
} }
if (json['tags'] != null) { if (json['tags'] != null) {
tags = new List<String>(); tags = [];
json['tags'].forEach((v) { json['tags'].forEach((v) {
tags.add(v); tags!.add(v);
}); });
} }
vendorId = json['vendor_id']; vendorId = json['vendor_id'];
@ -501,34 +501,34 @@ class PharmacyProduct {
data['product_type'] = this.productType; data['product_type'] = this.productType;
data['parent_grouped_product_id'] = this.parentGroupedProductId; data['parent_grouped_product_id'] = this.parentGroupedProductId;
if (this.roleIds != null) { if (this.roleIds != null) {
data['role_ids'] = this.roleIds.map((v) => v).toList(); data['role_ids'] = this.roleIds!.map((v) => v).toList();
} }
if (this.discountIds != null) { if (this.discountIds != null) {
data['discount_ids'] = this.discountIds.map((v) => v).toList(); data['discount_ids'] = this.discountIds!.map((v) => v).toList();
} }
if (this.storeIds != null) { if (this.storeIds != null) {
data['store_ids'] = this.storeIds.map((v) => v).toList(); data['store_ids'] = this.storeIds!.map((v) => v).toList();
} }
data['manufacturer_ids'] = this.manufacturerIds; data['manufacturer_ids'] = this.manufacturerIds;
if (this.reviews != null) { if (this.reviews != null) {
data['reviews'] = this.reviews.map((v) => v.toJson()).toList(); data['reviews'] = this.reviews!.map((v) => v.toJson()).toList();
} }
if (this.images != null) { if (this.images != null) {
data['images'] = this.images.map((v) => v.toJson()).toList(); data['images'] = this.images!.map((v) => v.toJson()).toList();
} }
if (this.attributes != null) { if (this.attributes != null) {
data['attributes'] = this.attributes.map((v) => v).toList(); data['attributes'] = this.attributes!.map((v) => v).toList();
} }
if (this.specifications != null) { if (this.specifications != null) {
data['specifications'] = data['specifications'] =
this.specifications.map((v) => v.toJson()).toList(); this.specifications!.map((v) => v.toJson()).toList();
} }
if (this.associatedProductIds != null) { if (this.associatedProductIds != null) {
data['associated_product_ids'] = data['associated_product_ids'] =
this.associatedProductIds.map((v) => v).toList(); this.associatedProductIds!.map((v) => v).toList();
} }
if (this.tags != null) { if (this.tags != null) {
data['tags'] = this.tags.map((v) => v).toList(); data['tags'] = this.tags!.map((v) => v).toList();
} }
data['vendor_id'] = this.vendorId; data['vendor_id'] = this.vendorId;
data['se_name'] = this.seName; data['se_name'] = this.seName;

@ -1,11 +1,11 @@
import 'PointsAmountPerday.dart'; import 'PointsAmountPerday.dart';
class PointsAmountPerMonth { class PointsAmountPerMonth {
num amountPerMonth; num? amountPerMonth;
String month; String? month;
num monthNumber; num? monthNumber;
List<PointsAmountPerday> pointsAmountPerday; List<PointsAmountPerday>? pointsAmountPerday;
num pointsPerMonth; num? pointsPerMonth;
PointsAmountPerMonth( PointsAmountPerMonth(
{this.amountPerMonth, {this.amountPerMonth,
@ -19,9 +19,9 @@ class PointsAmountPerMonth {
month = json['Month']; month = json['Month'];
monthNumber = json['MonthNumber']; monthNumber = json['MonthNumber'];
if (json['PointsAmountPerday'] != null) { if (json['PointsAmountPerday'] != null) {
pointsAmountPerday = new List<PointsAmountPerday>(); pointsAmountPerday = [];
json['PointsAmountPerday'].forEach((v) { json['PointsAmountPerday'].forEach((v) {
pointsAmountPerday.add(new PointsAmountPerday.fromJson(v)); pointsAmountPerday!.add(new PointsAmountPerday.fromJson(v));
}); });
} }
pointsPerMonth = json['PointsPerMonth']; pointsPerMonth = json['PointsPerMonth'];
@ -34,7 +34,7 @@ class PointsAmountPerMonth {
data['MonthNumber'] = this.monthNumber; data['MonthNumber'] = this.monthNumber;
if (this.pointsAmountPerday != null) { if (this.pointsAmountPerday != null) {
data['PointsAmountPerday'] = data['PointsAmountPerday'] =
this.pointsAmountPerday.map((v) => v.toJson()).toList(); this.pointsAmountPerday!.map((v) => v.toJson()).toList();
} }
data['PointsPerMonth'] = this.pointsPerMonth; data['PointsPerMonth'] = this.pointsPerMonth;
return data; return data;

@ -1,10 +1,10 @@
import 'PointsAmountPerMonth.dart'; import 'PointsAmountPerMonth.dart';
class PointsAmountPerYear { class PointsAmountPerYear {
num amountPerYear; num? amountPerYear;
List<PointsAmountPerMonth> pointsAmountPerMonth; List<PointsAmountPerMonth>? pointsAmountPerMonth;
num pointsPerYear; num? pointsPerYear;
num year; num? year;
PointsAmountPerYear( PointsAmountPerYear(
{this.amountPerYear, {this.amountPerYear,
@ -15,9 +15,9 @@ class PointsAmountPerYear {
PointsAmountPerYear.fromJson(Map<String, dynamic> json) { PointsAmountPerYear.fromJson(Map<String, dynamic> json) {
amountPerYear = json['AmountPerYear']; amountPerYear = json['AmountPerYear'];
if (json['PointsAmountPerMonth'] != null) { if (json['PointsAmountPerMonth'] != null) {
pointsAmountPerMonth = new List<PointsAmountPerMonth>(); pointsAmountPerMonth = [];
json['PointsAmountPerMonth'].forEach((v) { json['PointsAmountPerMonth'].forEach((v) {
pointsAmountPerMonth.add(new PointsAmountPerMonth.fromJson(v)); pointsAmountPerMonth!.add(new PointsAmountPerMonth.fromJson(v));
}); });
} }
pointsPerYear = json['PointsPerYear']; pointsPerYear = json['PointsPerYear'];
@ -29,7 +29,7 @@ class PointsAmountPerYear {
data['AmountPerYear'] = this.amountPerYear; data['AmountPerYear'] = this.amountPerYear;
if (this.pointsAmountPerMonth != null) { if (this.pointsAmountPerMonth != null) {
data['PointsAmountPerMonth'] = data['PointsAmountPerMonth'] =
this.pointsAmountPerMonth.map((v) => v.toJson()).toList(); this.pointsAmountPerMonth!.map((v) => v.toJson()).toList();
} }
data['PointsPerYear'] = this.pointsPerYear; data['PointsPerYear'] = this.pointsPerYear;
data['Year'] = this.year; data['Year'] = this.year;

@ -1,11 +1,11 @@
import 'PointsDetails.dart'; import 'PointsDetails.dart';
class PointsAmountPerday { class PointsAmountPerday {
num amountPerDay; num? amountPerDay;
String day; String? day;
List<PointsDetails> pointsDetails; List<PointsDetails>? pointsDetails;
num pointsPerDay; num? pointsPerDay;
String transationDate; String? transationDate;
PointsAmountPerday( PointsAmountPerday(
{this.amountPerDay, {this.amountPerDay,
@ -18,9 +18,9 @@ class PointsAmountPerday {
amountPerDay = json['AmountPerDay']; amountPerDay = json['AmountPerDay'];
day = json['Day']; day = json['Day'];
if (json['PointsDetails'] != null) { if (json['PointsDetails'] != null) {
pointsDetails = new List<PointsDetails>(); pointsDetails = [];
json['PointsDetails'].forEach((v) { json['PointsDetails'].forEach((v) {
pointsDetails.add(new PointsDetails.fromJson(v)); pointsDetails!.add(new PointsDetails.fromJson(v));
}); });
} }
pointsPerDay = json['PointsPerDay']; pointsPerDay = json['PointsPerDay'];
@ -33,7 +33,7 @@ class PointsAmountPerday {
data['Day'] = this.day; data['Day'] = this.day;
if (this.pointsDetails != null) { if (this.pointsDetails != null) {
data['PointsDetails'] = data['PointsDetails'] =
this.pointsDetails.map((v) => v.toJson()).toList(); this.pointsDetails!.map((v) => v.toJson()).toList();
} }
data['PointsPerDay'] = this.pointsPerDay; data['PointsPerDay'] = this.pointsPerDay;
data['TransationDate'] = this.transationDate; data['TransationDate'] = this.transationDate;

@ -1,14 +1,14 @@
class PointsDetails { class PointsDetails {
int accNumber; int? accNumber;
String accountStatus; String? accountStatus;
num amount; num? amount;
int lineItemNo; int? lineItemNo;
String operationType; String? operationType;
num points; num? points;
num purchasePoints; num? purchasePoints;
int subTransactionType; int? subTransactionType;
String subTransactionTypeDescription; String? subTransactionTypeDescription;
String transactionDate; String? transactionDate;
PointsDetails( PointsDetails(
{this.accNumber, {this.accNumber,

@ -1,21 +1,21 @@
import '../pharmacies/Customer.dart'; import '../pharmacies/Customer.dart';
class Reviews { class Reviews {
int id; int? id;
int position; int? position;
int reviewId; int? reviewId;
int customerId; int? customerId;
int productId; int? productId;
int storeId; int? storeId;
bool isApproved; bool? isApproved;
String title; String? title;
String reviewText; String? reviewText;
String replyText; String? replyText;
int rating; int? rating;
int helpfulYesTotal; int? helpfulYesTotal;
int helpfulNoTotal; int? helpfulNoTotal;
String createdOnUtc; String? createdOnUtc;
Customer customer; Customer? customer;
//Null product; //Null product;
Reviews( Reviews(
@ -75,7 +75,7 @@ class Reviews {
data['helpful_no_total'] = this.helpfulNoTotal; data['helpful_no_total'] = this.helpfulNoTotal;
data['created_on_utc'] = this.createdOnUtc; data['created_on_utc'] = this.createdOnUtc;
if (this.customer != null) { if (this.customer != null) {
data['customer'] = this.customer.toJson(); data['customer'] = this.customer!.toJson();
} }
// data['product'] = this.product; // data['product'] = this.product;
return data; return data;

@ -1,48 +1,48 @@
class ShippingOption { class ShippingOption {
String shippingRateComputationMethodSystemName; String? shippingRateComputationMethodSystemName;
double rate; double? rate;
double rateVat; double? rateVat;
double rateVatPercent; double? rateVatPercent;
String name; String? name;
String namen; String? namen;
String description; String? description;
String descriptionn; String? descriptionn;
bool allowShippingSunday; bool? allowShippingSunday;
bool allowShippingMonday; bool? allowShippingMonday;
bool allowShippingTuesday; bool? allowShippingTuesday;
bool allowShippingWednesday; bool? allowShippingWednesday;
bool allowShippingThursday; bool? allowShippingThursday;
bool allowShippingFriday; bool? allowShippingFriday;
bool allowShippingSaturday; bool? allowShippingSaturday;
String allowShippingTime1From; String? allowShippingTime1From;
String allowShippingTime1To; String? allowShippingTime1To;
String allowShippingTime2From; String? allowShippingTime2From;
String allowShippingTime2To; String? allowShippingTime2To;
String allowShippingNote; String? allowShippingNote;
String allowShippingNoten; String? allowShippingNoten;
ShippingOption( ShippingOption(
{this.shippingRateComputationMethodSystemName, {this.shippingRateComputationMethodSystemName,
this.rate, this.rate,
this.rateVat, this.rateVat,
this.rateVatPercent, this.rateVatPercent,
this.name, this.name,
this.namen, this.namen,
this.description, this.description,
this.descriptionn, this.descriptionn,
this.allowShippingSunday, this.allowShippingSunday,
this.allowShippingMonday, this.allowShippingMonday,
this.allowShippingTuesday, this.allowShippingTuesday,
this.allowShippingWednesday, this.allowShippingWednesday,
this.allowShippingThursday, this.allowShippingThursday,
this.allowShippingFriday, this.allowShippingFriday,
this.allowShippingSaturday, this.allowShippingSaturday,
this.allowShippingTime1From, this.allowShippingTime1From,
this.allowShippingTime1To, this.allowShippingTime1To,
this.allowShippingTime2From, this.allowShippingTime2From,
this.allowShippingTime2To, this.allowShippingTime2To,
this.allowShippingNote, this.allowShippingNote,
this.allowShippingNoten}); this.allowShippingNoten});
ShippingOption.fromJson(Map<String, dynamic> json) { ShippingOption.fromJson(Map<String, dynamic> json) {
shippingRateComputationMethodSystemName = json['shipping_rate_computation_method_system_name']; shippingRateComputationMethodSystemName = json['shipping_rate_computation_method_system_name'];
@ -70,8 +70,7 @@ class ShippingOption {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
data['shipping_rate_computation_method_system_name'] = data['shipping_rate_computation_method_system_name'] = this.shippingRateComputationMethodSystemName;
this.shippingRateComputationMethodSystemName;
data['rate'] = this.rate; data['rate'] = this.rate;
data['rate_vat'] = this.rateVat; data['rate_vat'] = this.rateVat;
data['rate_vat_percent'] = this.rateVatPercent; data['rate_vat_percent'] = this.rateVatPercent;

@ -2,11 +2,11 @@ import 'package:diplomaticquarterapp/core/model/pharmacies/Customer.dart';
import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyProduct.dart'; import 'package:diplomaticquarterapp/core/model/pharmacies/PharmacyProduct.dart';
class ShoppingCart { class ShoppingCart {
int languageId; int? languageId;
String id; String? id;
// List<Null> productAttributes; // List<Null> productAttributes;
double customerEnteredPrice; double? customerEnteredPrice;
int quantity; int? quantity;
dynamic discountAmountInclTax; dynamic discountAmountInclTax;
dynamic subtotal; dynamic subtotal;
dynamic subtotalWithVat; dynamic subtotalWithVat;
@ -19,21 +19,21 @@ class ShoppingCart {
dynamic createdOnUtc; dynamic createdOnUtc;
dynamic updatedOnUtc; dynamic updatedOnUtc;
dynamic shoppingCartType; dynamic shoppingCartType;
int productId; int? productId;
PharmacyProduct product; PharmacyProduct? product;
int customerId; int? customerId;
Customer customer; Customer? customer;
double unitPriceInclTax; double? unitPriceInclTax;
double unitPriceExclTax; double? unitPriceExclTax;
double priceInclTax; double? priceInclTax;
double priceExclTax; double? priceExclTax;
dynamic discountAmountExclTax; dynamic discountAmountExclTax;
double originalProductCost; double? originalProductCost;
String attributeDescription; String? attributeDescription;
int downloadCount; int? downloadCount;
bool isDownloadActivated; bool? isDownloadActivated;
int licenseDownloadId; int? licenseDownloadId;
double itemWeight; double? itemWeight;
ShoppingCart( ShoppingCart(
{this.languageId, {this.languageId,
@ -139,11 +139,11 @@ class ShoppingCart {
data['shopping_cart_type'] = this.shoppingCartType; data['shopping_cart_type'] = this.shoppingCartType;
data['product_id'] = this.productId; data['product_id'] = this.productId;
if (this.product != null) { if (this.product != null) {
data['product'] = this.product.toJson(); data['product'] = this.product!.toJson();
} }
data['customer_id'] = this.customerId; data['customer_id'] = this.customerId;
if (this.customer != null) { if (this.customer != null) {
data['customer'] = this.customer.toJson(); data['customer'] = this.customer!.toJson();
} }
data['unit_price_incl_tax'] = this.unitPriceInclTax; data['unit_price_incl_tax'] = this.unitPriceInclTax;
data['unit_price_excl_tax'] = this.unitPriceExclTax; data['unit_price_excl_tax'] = this.unitPriceExclTax;

@ -2,14 +2,14 @@ import 'package:diplomaticquarterapp/core/model/pharmacies/ShoppingCart.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class ShoppingCartResponse { class ShoppingCartResponse {
int itemCount; int? itemCount;
int quantityCount; int? quantityCount;
double subtotal; double? subtotal;
double subtotalWithVat; double? subtotalWithVat;
double subtotalVatAmount; double? subtotalVatAmount;
double subtotalVatRate; double? subtotalVatRate;
double totalAmount; double? totalAmount;
List<ShoppingCart> shoppingCarts; List<ShoppingCart>? shoppingCarts;
ShoppingCartResponse( ShoppingCartResponse(
{this.itemCount =0, {this.itemCount =0,
@ -31,9 +31,9 @@ class ShoppingCartResponse {
subtotalVatAmount = json['subtotal_vat_amount']; subtotalVatAmount = json['subtotal_vat_amount'];
subtotalVatRate = json['subtotal_vat_rate']; subtotalVatRate = json['subtotal_vat_rate'];
if (json['shopping_carts'] != null) { if (json['shopping_carts'] != null) {
shoppingCarts = new List<ShoppingCart>(); shoppingCarts = [];
json['shopping_carts'].forEach((v) { json['shopping_carts'].forEach((v) {
shoppingCarts.add(new ShoppingCart.fromJson(v)); shoppingCarts!.add(new ShoppingCart.fromJson(v));
}); });
} }
} }
@ -48,7 +48,7 @@ class ShoppingCartResponse {
data['subtotal_vat_rate'] = this.subtotalVatRate; data['subtotal_vat_rate'] = this.subtotalVatRate;
if (this.shoppingCarts != null) { if (this.shoppingCarts != null) {
data['shopping_carts'] = data['shopping_carts'] =
this.shoppingCarts.map((v) => v.toJson()).toList(); this.shoppingCarts!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }

@ -3,37 +3,37 @@ import 'package:diplomaticquarterapp/core/model/pharmacies/Customer.dart';
import 'package:diplomaticquarterapp/core/model/pharmacies/ShoppingCart.dart'; import 'package:diplomaticquarterapp/core/model/pharmacies/ShoppingCart.dart';
class OrderDetailModel { class OrderDetailModel {
String id; String? id;
int storeId; int? storeId;
String orderGuid; String? orderGuid;
bool pickUpInStore; bool? pickUpInStore;
String paymentMethodSystemName; String? paymentMethodSystemName;
String paymentName; String? paymentName;
String paymentNamen; String? paymentNamen;
String customerCurrencyCode; String? customerCurrencyCode;
dynamic currencyRate; dynamic currencyRate;
dynamic customerTaxDisplayTypeId; dynamic customerTaxDisplayTypeId;
dynamic vatNumber; dynamic vatNumber;
double orderSubtotalInclTax; double? orderSubtotalInclTax;
double orderSubtotalExclTax; double? orderSubtotalExclTax;
dynamic orderSubTotalDiscountInclTax; dynamic orderSubTotalDiscountInclTax;
dynamic orderSubTotalDiscountExclTax; dynamic orderSubTotalDiscountExclTax;
double orderShippingInclTax; double? orderShippingInclTax;
dynamic orderShippingExclTax; dynamic orderShippingExclTax;
dynamic paymentMethodAdditionalFeeInclTax; dynamic paymentMethodAdditionalFeeInclTax;
dynamic paymentMethodAdditionalFeeExclTax; dynamic paymentMethodAdditionalFeeExclTax;
String taxRates; String? taxRates;
double orderTax; double? orderTax;
dynamic orderDiscount; dynamic orderDiscount;
dynamic productCount; dynamic productCount;
dynamic orderTotal; dynamic orderTotal;
dynamic refundedAmount; dynamic refundedAmount;
dynamic rewardPointsWereAdded; dynamic rewardPointsWereAdded;
dynamic rxAttachments; dynamic rxAttachments;
String checkoutAttributeDescription; String? checkoutAttributeDescription;
int customerLanguageId; int? customerLanguageId;
int affiliateId; int? affiliateId;
String customerIp; String? customerIp;
dynamic authorizationTransactionId; dynamic authorizationTransactionId;
dynamic authorizationTransactionCode; dynamic authorizationTransactionCode;
dynamic authorizationTransactionResult; dynamic authorizationTransactionResult;
@ -41,100 +41,101 @@ class OrderDetailModel {
dynamic captureTransactionResult; dynamic captureTransactionResult;
dynamic subscriptionTransactionId; dynamic subscriptionTransactionId;
dynamic paidDateUtc; dynamic paidDateUtc;
String shippingMethod; String? shippingMethod;
String shippingRateComputationMethodSystemName; String? shippingRateComputationMethodSystemName;
String customValuesXml; String? customValuesXml;
bool deleted; bool? deleted;
String createdOnUtc; String? createdOnUtc;
Customer customer; Customer? customer;
int customerId; int? customerId;
BillingAddress billingAddress; BillingAddress? billingAddress;
BillingAddress shippingAddress; BillingAddress? shippingAddress;
List<ShoppingCart> orderItems; List<ShoppingCart>? orderItems;
int orderStatusId; int? orderStatusId;
String orderStatus; String? orderStatus;
String orderStatusn; String? orderStatusn;
int paymentStatusId; int? paymentStatusId;
String paymentStatus; String? paymentStatus;
String paymentStatusn; String? paymentStatusn;
String shippingStatus; String? shippingStatus;
String shippingStatusn; String? shippingStatusn;
String customerTaxDisplayType; String? customerTaxDisplayType;
bool canCancel; bool? canCancel;
bool canRefund; bool? canRefund;
dynamic lakumAmount; dynamic lakumAmount;
String preferDeliveryDate; String? preferDeliveryDate;
String preferDeliveryTime; String? preferDeliveryTime;
String preferDeliveryTimen; String? preferDeliveryTimen;
String driverOTP; String? driverOTP;
String driverID; String? driverID;
OrderDetailModel( OrderDetailModel({
{this.id, this.id,
this.storeId, this.storeId,
this.orderGuid, this.orderGuid,
this.pickUpInStore, this.pickUpInStore,
this.paymentMethodSystemName, this.paymentMethodSystemName,
this.paymentName, this.paymentName,
this.paymentNamen, this.paymentNamen,
this.customerCurrencyCode, this.customerCurrencyCode,
this.currencyRate, this.currencyRate,
this.customerTaxDisplayTypeId, this.customerTaxDisplayTypeId,
this.vatNumber, this.vatNumber,
this.orderSubtotalInclTax, this.orderSubtotalInclTax,
this.orderSubtotalExclTax, this.orderSubtotalExclTax,
this.orderSubTotalDiscountInclTax, this.orderSubTotalDiscountInclTax,
this.orderSubTotalDiscountExclTax, this.orderSubTotalDiscountExclTax,
this.orderShippingInclTax, this.orderShippingInclTax,
this.orderShippingExclTax, this.orderShippingExclTax,
this.paymentMethodAdditionalFeeInclTax, this.paymentMethodAdditionalFeeInclTax,
this.paymentMethodAdditionalFeeExclTax, this.paymentMethodAdditionalFeeExclTax,
this.taxRates, this.taxRates,
this.orderTax, this.orderTax,
this.orderDiscount, this.orderDiscount,
this.productCount, this.productCount,
this.orderTotal, this.orderTotal,
this.refundedAmount, this.refundedAmount,
this.rewardPointsWereAdded, this.rewardPointsWereAdded,
this.rxAttachments, this.rxAttachments,
this.checkoutAttributeDescription, this.checkoutAttributeDescription,
this.customerLanguageId, this.customerLanguageId,
this.affiliateId, this.affiliateId,
this.customerIp, this.customerIp,
this.authorizationTransactionId, this.authorizationTransactionId,
this.authorizationTransactionCode, this.authorizationTransactionCode,
this.authorizationTransactionResult, this.authorizationTransactionResult,
this.captureTransactionId, this.captureTransactionId,
this.captureTransactionResult, this.captureTransactionResult,
this.subscriptionTransactionId, this.subscriptionTransactionId,
this.paidDateUtc, this.paidDateUtc,
this.shippingMethod, this.shippingMethod,
this.shippingRateComputationMethodSystemName, this.shippingRateComputationMethodSystemName,
this.customValuesXml, this.customValuesXml,
this.deleted, this.deleted,
this.createdOnUtc, this.createdOnUtc,
this.customer, this.customer,
this.customerId, this.customerId,
this.billingAddress, this.billingAddress,
this.shippingAddress, this.shippingAddress,
this.orderItems, this.orderItems,
this.orderStatusId, this.orderStatusId,
this.orderStatus, this.orderStatus,
this.orderStatusn, this.orderStatusn,
this.paymentStatusId, this.paymentStatusId,
this.paymentStatus, this.paymentStatus,
this.paymentStatusn, this.paymentStatusn,
this.shippingStatus, this.shippingStatus,
this.shippingStatusn, this.shippingStatusn,
this.customerTaxDisplayType, this.customerTaxDisplayType,
this.canCancel, this.canCancel,
this.canRefund, this.canRefund,
this.lakumAmount, this.lakumAmount,
this.preferDeliveryDate, this.preferDeliveryDate,
this.preferDeliveryTime, this.preferDeliveryTime,
this.preferDeliveryTimen, this.preferDeliveryTimen,
this.driverID, this.driverID,
this.driverOTP,}); this.driverOTP,
});
OrderDetailModel.fromJson(Map<String, dynamic> json) { OrderDetailModel.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
@ -154,10 +155,8 @@ class OrderDetailModel {
orderSubTotalDiscountExclTax = json['order_sub_total_discount_excl_tax']; orderSubTotalDiscountExclTax = json['order_sub_total_discount_excl_tax'];
orderShippingInclTax = json['order_shipping_incl_tax']; orderShippingInclTax = json['order_shipping_incl_tax'];
orderShippingExclTax = json['order_shipping_excl_tax']; orderShippingExclTax = json['order_shipping_excl_tax'];
paymentMethodAdditionalFeeInclTax = paymentMethodAdditionalFeeInclTax = json['payment_method_additional_fee_incl_tax'];
json['payment_method_additional_fee_incl_tax']; paymentMethodAdditionalFeeExclTax = json['payment_method_additional_fee_excl_tax'];
paymentMethodAdditionalFeeExclTax =
json['payment_method_additional_fee_excl_tax'];
taxRates = json['tax_rates']; taxRates = json['tax_rates'];
orderTax = json['order_tax']; orderTax = json['order_tax'];
orderDiscount = json['order_discount']; orderDiscount = json['order_discount'];
@ -178,25 +177,18 @@ class OrderDetailModel {
subscriptionTransactionId = json['subscription_transaction_id']; subscriptionTransactionId = json['subscription_transaction_id'];
paidDateUtc = json['paid_date_utc']; paidDateUtc = json['paid_date_utc'];
shippingMethod = json['shipping_method']; shippingMethod = json['shipping_method'];
shippingRateComputationMethodSystemName = shippingRateComputationMethodSystemName = json['shipping_rate_computation_method_system_name'];
json['shipping_rate_computation_method_system_name'];
customValuesXml = json['custom_values_xml']; customValuesXml = json['custom_values_xml'];
deleted = json['deleted']; deleted = json['deleted'];
createdOnUtc = json['created_on_utc']; createdOnUtc = json['created_on_utc'];
customer = json['customer'] != null customer = json['customer'] != null ? new Customer.fromJson(json['customer']) : null;
? new Customer.fromJson(json['customer'])
: null;
customerId = json['customer_id']; customerId = json['customer_id'];
billingAddress = json['billing_address'] != null billingAddress = json['billing_address'] != null ? new BillingAddress.fromJson(json['billing_address']) : null;
? new BillingAddress.fromJson(json['billing_address']) shippingAddress = json['shipping_address'] != null ? new BillingAddress.fromJson(json['shipping_address']) : null;
: null;
shippingAddress = json['shipping_address'] != null
? new BillingAddress.fromJson(json['shipping_address'])
: null;
if (json['order_items'] != null) { if (json['order_items'] != null) {
orderItems = new List<ShoppingCart>(); orderItems = [];
json['order_items'].forEach((v) { json['order_items'].forEach((v) {
orderItems.add(new ShoppingCart.fromJson(v)); orderItems!.add(new ShoppingCart.fromJson(v));
}); });
} }
orderStatusId = json['order_status_id']; orderStatusId = json['order_status_id'];
@ -216,8 +208,10 @@ class OrderDetailModel {
preferDeliveryTimen = json['prefer_delivery_timen']; preferDeliveryTimen = json['prefer_delivery_timen'];
// Driver Detail // Driver Detail
driverID: json["DriverID"]; driverID:
driverOTP: json["DriverOTP"]; json["DriverID"];
driverOTP:
json["DriverOTP"];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
@ -235,16 +229,12 @@ class OrderDetailModel {
data['vat_number'] = this.vatNumber; data['vat_number'] = this.vatNumber;
data['order_subtotal_incl_tax'] = this.orderSubtotalInclTax; data['order_subtotal_incl_tax'] = this.orderSubtotalInclTax;
data['order_subtotal_excl_tax'] = this.orderSubtotalExclTax; data['order_subtotal_excl_tax'] = this.orderSubtotalExclTax;
data['order_sub_total_discount_incl_tax'] = data['order_sub_total_discount_incl_tax'] = this.orderSubTotalDiscountInclTax;
this.orderSubTotalDiscountInclTax; data['order_sub_total_discount_excl_tax'] = this.orderSubTotalDiscountExclTax;
data['order_sub_total_discount_excl_tax'] =
this.orderSubTotalDiscountExclTax;
data['order_shipping_incl_tax'] = this.orderShippingInclTax; data['order_shipping_incl_tax'] = this.orderShippingInclTax;
data['order_shipping_excl_tax'] = this.orderShippingExclTax; data['order_shipping_excl_tax'] = this.orderShippingExclTax;
data['payment_method_additional_fee_incl_tax'] = data['payment_method_additional_fee_incl_tax'] = this.paymentMethodAdditionalFeeInclTax;
this.paymentMethodAdditionalFeeInclTax; data['payment_method_additional_fee_excl_tax'] = this.paymentMethodAdditionalFeeExclTax;
data['payment_method_additional_fee_excl_tax'] =
this.paymentMethodAdditionalFeeExclTax;
data['tax_rates'] = this.taxRates; data['tax_rates'] = this.taxRates;
data['order_tax'] = this.orderTax; data['order_tax'] = this.orderTax;
data['order_discount'] = this.orderDiscount; data['order_discount'] = this.orderDiscount;
@ -259,30 +249,28 @@ class OrderDetailModel {
data['customer_ip'] = this.customerIp; data['customer_ip'] = this.customerIp;
data['authorization_transaction_id'] = this.authorizationTransactionId; data['authorization_transaction_id'] = this.authorizationTransactionId;
data['authorization_transaction_code'] = this.authorizationTransactionCode; data['authorization_transaction_code'] = this.authorizationTransactionCode;
data['authorization_transaction_result'] = data['authorization_transaction_result'] = this.authorizationTransactionResult;
this.authorizationTransactionResult;
data['capture_transaction_id'] = this.captureTransactionId; data['capture_transaction_id'] = this.captureTransactionId;
data['capture_transaction_result'] = this.captureTransactionResult; data['capture_transaction_result'] = this.captureTransactionResult;
data['subscription_transaction_id'] = this.subscriptionTransactionId; data['subscription_transaction_id'] = this.subscriptionTransactionId;
data['paid_date_utc'] = this.paidDateUtc; data['paid_date_utc'] = this.paidDateUtc;
data['shipping_method'] = this.shippingMethod; data['shipping_method'] = this.shippingMethod;
data['shipping_rate_computation_method_system_name'] = data['shipping_rate_computation_method_system_name'] = this.shippingRateComputationMethodSystemName;
this.shippingRateComputationMethodSystemName;
data['custom_values_xml'] = this.customValuesXml; data['custom_values_xml'] = this.customValuesXml;
data['deleted'] = this.deleted; data['deleted'] = this.deleted;
data['created_on_utc'] = this.createdOnUtc; data['created_on_utc'] = this.createdOnUtc;
if (this.customer != null) { if (this.customer != null) {
data['customer'] = this.customer.toJson(); data['customer'] = this.customer!.toJson();
} }
data['customer_id'] = this.customerId; data['customer_id'] = this.customerId;
if (this.billingAddress != null) { if (this.billingAddress != null) {
data['billing_address'] = this.billingAddress.toJson(); data['billing_address'] = this.billingAddress!.toJson();
} }
if (this.shippingAddress != null) { if (this.shippingAddress != null) {
data['shipping_address'] = this.shippingAddress.toJson(); data['shipping_address'] = this.shippingAddress!.toJson();
} }
if (this.orderItems != null) { if (this.orderItems != null) {
data['order_items'] = this.orderItems.map((v) => v.toJson()).toList(); data['order_items'] = this.orderItems!.map((v) => v.toJson()).toList();
} }
data['order_status_id'] = this.orderStatusId; data['order_status_id'] = this.orderStatusId;
data['order_status'] = this.orderStatus; data['order_status'] = this.orderStatus;
@ -301,5 +289,4 @@ class OrderDetailModel {
data['prefer_delivery_timen'] = this.preferDeliveryTimen; data['prefer_delivery_timen'] = this.preferDeliveryTimen;
return data; return data;
} }
} }

File diff suppressed because it is too large Load Diff

@ -1,13 +1,13 @@
class OrdersModel { class OrdersModel {
List<Orders> orders; List<Orders>? orders;
OrdersModel({this.orders}); OrdersModel({this.orders});
OrdersModel.fromJson(Map<String, dynamic> json) { OrdersModel.fromJson(Map<String, dynamic> json) {
if (json['orders'] != null) { if (json['orders'] != null) {
orders = new List<Orders>(); orders = [];
json['orders'].forEach((v) { json['orders'].forEach((v) {
orders.add(new Orders.fromJson(v)); orders!.add(new Orders.fromJson(v));
}); });
} }
} }
@ -15,23 +15,23 @@ class OrdersModel {
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>(); final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.orders != null) { if (this.orders != null) {
data['orders'] = this.orders.map((v) => v.toJson()).toList(); data['orders'] = this.orders!.map((v) => v.toJson()).toList();
} }
return data; return data;
} }
} }
class Orders { class Orders {
String id; String? id;
int productCount; int? productCount;
dynamic orderTotal; dynamic orderTotal;
String createdOnUtc; String? createdOnUtc;
int orderStatusId; int? orderStatusId;
String orderStatus; String? orderStatus;
String orderStatusn; String? orderStatusn;
bool canCancel; bool? canCancel;
bool canRefund; bool? canRefund;
String orderGuid; String? orderGuid;
dynamic customerId; dynamic customerId;
dynamic orderSubtotalExclTax; dynamic orderSubtotalExclTax;
dynamic orderShippingExclTax; dynamic orderShippingExclTax;

@ -6,12 +6,12 @@ import 'package:flutter/material.dart';
import 'ShippingOption.dart'; import 'ShippingOption.dart';
class PaymentCheckoutData { class PaymentCheckoutData {
Addresses address; Addresses? address;
PaymentOption paymentOption; PaymentOption? paymentOption;
LacumAccountInformation lacumInformation; LacumAccountInformation? lacumInformation;
bool cartDataVisible; bool? cartDataVisible;
ShippingOption shippingOption; ShippingOption? shippingOption;
num usedLakumPoints; num? usedLakumPoints;
PaymentCheckoutData({this.address, this.paymentOption, this.lacumInformation, this.cartDataVisible = false, this.shippingOption, this.usedLakumPoints = 0}); PaymentCheckoutData({this.address, this.paymentOption, this.lacumInformation, this.cartDataVisible = false, this.shippingOption, this.usedLakumPoints = 0});

@ -1,26 +1,26 @@
class PharmaciesListModel { class PharmaciesListModel {
int itemID; int? itemID;
int patientTypeID; int? patientTypeID;
int languageID; int? languageID;
String stamp; String? stamp;
String iPAdress; String? iPAdress;
double versionID; double? versionID;
String tokenID; String? tokenID;
String sessionID; String? sessionID;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
int patientOutSA; int? patientOutSA;
int channel; int? channel;
int doctorID; int? doctorID;
int editedBy; int? editedBy;
int projectID; int? projectID;
int clinicID; int? clinicID;
double price; double? price;
String imageLocation; String? imageLocation;
String desLocation; String? desLocation;
String itemDes; String? itemDes;
String phoneNumber; String? phoneNumber;
String longitude; String? longitude;
String latitude; String? latitude;
PharmaciesListModel( PharmaciesListModel(
{this.itemID, {this.itemID,

@ -1,26 +1,26 @@
class PharmaciesModel { class PharmaciesModel {
String pHRItemName; String? pHRItemName;
int pageIndex; int? pageIndex;
int pageSize; int? pageSize;
double versionID; double? versionID;
int channel; int? channel;
int languageID; int? languageID;
String iPAdress; String? iPAdress;
String generalid; String? generalid;
int patientOutSA; int? patientOutSA;
String sessionID; String? sessionID;
bool isDentalAllowedBackend; bool? isDentalAllowedBackend;
int deviceTypeID; int? deviceTypeID;
int doctorID; int? doctorID;
int editedBy; int? editedBy;
int projectID; int? projectID;
int clinicID; int? clinicID;
String tokenID; String? tokenID;
String stamp; String? stamp;
bool isLoginForDoctorApp; bool? isLoginForDoctorApp;
String itemDes; String? itemDes;
String productImage; String? productImage;
int itemID; int? itemID;
PharmaciesModel( PharmaciesModel(
{this.pHRItemName, {this.pHRItemName,

@ -1,83 +1,83 @@
class RecommendedProductModel { class RecommendedProductModel {
dynamic id; dynamic id;
bool visibleIndividually; bool? visibleIndividually;
dynamic name; dynamic name;
dynamic namen; dynamic namen;
List<LocalizedNames> localizedNames; List<LocalizedNames>? localizedNames;
dynamic shortDescription; dynamic shortDescription;
dynamic shortDescriptionn; dynamic shortDescriptionn;
dynamic fullDescription; dynamic fullDescription;
dynamic fullDescriptionn; dynamic fullDescriptionn;
bool markasNew; bool? markasNew;
bool showOnHomePage; bool? showOnHomePage;
// dynamic metaKeywords; // dynamic metaKeywords;
// dynamic metaDescription; // dynamic metaDescription;
// dynamic metaTitle; // dynamic metaTitle;
bool allowCustomerReviews; bool? allowCustomerReviews;
dynamic approvedRatingSum; dynamic approvedRatingSum;
dynamic notApprovedRatingSum; dynamic notApprovedRatingSum;
dynamic approvedTotalReviews; dynamic approvedTotalReviews;
dynamic notApprovedTotalReviews; dynamic notApprovedTotalReviews;
dynamic sku; dynamic sku;
bool isRx; bool? isRx;
bool prescriptionRequired; bool? prescriptionRequired;
dynamic rxMessage; dynamic rxMessage;
dynamic rxMessagen; dynamic rxMessagen;
// dynamic manufacturerPartNumber; // dynamic manufacturerPartNumber;
// dynamic gtin; // dynamic gtin;
bool isGiftCard; bool? isGiftCard;
bool requireOtherProducts; bool? requireOtherProducts;
bool automaticallyAddRequiredProducts; bool? automaticallyAddRequiredProducts;
bool isDownload; bool? isDownload;
bool unlimitedDownloads; bool? unlimitedDownloads;
dynamic maxNumberOfDownloads; dynamic maxNumberOfDownloads;
// dynamic downloadExpirationDays; // dynamic downloadExpirationDays;
bool hasSampleDownload; bool? hasSampleDownload;
bool hasUserAgreement; bool? hasUserAgreement;
bool isRecurring; bool? isRecurring;
dynamic recurringCycleLength; dynamic recurringCycleLength;
dynamic recurringTotalCycles; dynamic recurringTotalCycles;
bool isRental; bool? isRental;
dynamic rentalPriceLength; dynamic rentalPriceLength;
bool isShipEnabled; bool? isShipEnabled;
bool isFreeShipping; bool? isFreeShipping;
bool shipSeparately; bool? shipSeparately;
dynamic additionalShippingCharge; dynamic additionalShippingCharge;
bool isTaxExempt; bool? isTaxExempt;
bool isTelecommunicationsOrBroadcastingOrElectronicServices; bool? isTelecommunicationsOrBroadcastingOrElectronicServices;
bool useMultipleWarehouses; bool? useMultipleWarehouses;
dynamic manageInventoryMethodId; dynamic manageInventoryMethodId;
dynamic stockQuantity; dynamic stockQuantity;
dynamic stockAvailability; dynamic stockAvailability;
dynamic stockAvailabilityn; dynamic stockAvailabilityn;
bool displayStockAvailability; bool? displayStockAvailability;
bool displayStockQuantity; bool? displayStockQuantity;
dynamic minStockQuantity; dynamic minStockQuantity;
dynamic notifyAdminForQuantityBelow; dynamic notifyAdminForQuantityBelow;
bool allowBackInStockSubscriptions; bool? allowBackInStockSubscriptions;
dynamic orderMinimumQuantity; dynamic orderMinimumQuantity;
dynamic orderMaximumQuantity; dynamic orderMaximumQuantity;
// Null allowedQuantities; // Null allowedQuantities;
bool allowAddingOnlyExistingAttributeCombinations; bool? allowAddingOnlyExistingAttributeCombinations;
bool disableBuyButton; bool? disableBuyButton;
bool disableWishlistButton; bool? disableWishlistButton;
bool availableForPreOrder; bool? availableForPreOrder;
// dynamic preOrderAvailabilityStartDateTimeUtc; // dynamic preOrderAvailabilityStartDateTimeUtc;
bool callForPrice; bool? callForPrice;
dynamic price; dynamic price;
dynamic oldPrice; dynamic oldPrice;
dynamic productCost; dynamic productCost;
// dynamic specialPrice; // dynamic specialPrice;
// dynamic specialPriceStartDateTimeUtc; // dynamic specialPriceStartDateTimeUtc;
// dynamic specialPriceEndDateTimeUtc; // dynamic specialPriceEndDateTimeUtc;
bool customerEntersPrice; bool? customerEntersPrice;
dynamic minimumCustomerEnteredPrice; dynamic minimumCustomerEnteredPrice;
dynamic maximumCustomerEnteredPrice; dynamic maximumCustomerEnteredPrice;
bool basepriceEnabled; bool? basepriceEnabled;
dynamic basepriceAmount; dynamic basepriceAmount;
dynamic basepriceBaseAmount; dynamic basepriceBaseAmount;
bool hasTierPrices; bool? hasTierPrices;
bool hasDiscountsApplied; bool? hasDiscountsApplied;
// dynamic discountName; // dynamic discountName;
// dynamic discountNamen; // dynamic discountNamen;
// dynamic discountDescription; // dynamic discountDescription;
@ -92,8 +92,8 @@ class RecommendedProductModel {
// dynamic availableStartDateTimeUtc; // dynamic availableStartDateTimeUtc;
// dynamic availableEndDateTimeUtc; // dynamic availableEndDateTimeUtc;
dynamic displayOrder; dynamic displayOrder;
bool published; bool? published;
bool deleted; bool? deleted;
dynamic createdOnUtc; dynamic createdOnUtc;
dynamic updatedOnUtc; dynamic updatedOnUtc;
dynamic productType; dynamic productType;
@ -101,16 +101,16 @@ class RecommendedProductModel {
// List<dynamic> roleIds; // List<dynamic> roleIds;
// List<dynamic> discountIds; // List<dynamic> discountIds;
// List<dynamic> storeIds; // List<dynamic> storeIds;
List<dynamic> manufacturerIds; List<dynamic>? manufacturerIds;
// List<dynamic> reviews; // List<dynamic> reviews;
List<Images> images; List<Images>? images;
// List<dynamic> attributes; // List<dynamic> attributes;
List<Specifications> specifications; List<Specifications>? specifications;
// List<dynamic> associatedProductIds; // List<dynamic> associatedProductIds;
// List<dynamic> tags; // List<dynamic> tags;
dynamic vendorId; dynamic vendorId;
dynamic seName; dynamic seName;
bool isinwishlist; bool? isinwishlist;
RecommendedProductModel( RecommendedProductModel(
{this.id, {this.id,
@ -232,9 +232,9 @@ class RecommendedProductModel {
name = json['name']; name = json['name'];
namen = json['namen']; namen = json['namen'];
if (json['localized_names'] != null) { if (json['localized_names'] != null) {
localizedNames = new List<LocalizedNames>(); localizedNames = [];
json['localized_names'].forEach((v) { json['localized_names'].forEach((v) {
localizedNames.add(new LocalizedNames.fromJson(v)); localizedNames!.add(new LocalizedNames.fromJson(v));
}); });
} }
shortDescription = json['short_description']; shortDescription = json['short_description'];
@ -361,9 +361,9 @@ class RecommendedProductModel {
// }); // });
// } // }
if (json['images'] != null) { if (json['images'] != null) {
images = new List<Images>(); images = [];
json['images'].forEach((v) { json['images'].forEach((v) {
images.add(new Images.fromJson(v)); images!.add(new Images.fromJson(v));
}); });
} }
// if (json['attributes'] != null) { // if (json['attributes'] != null) {
@ -373,9 +373,9 @@ class RecommendedProductModel {
// }); // });
// } // }
if (json['specifications'] != null) { if (json['specifications'] != null) {
specifications = new List<Specifications>(); specifications = [];
json['specifications'].forEach((v) { json['specifications'].forEach((v) {
specifications.add(new Specifications.fromJson(v)); specifications!.add(new Specifications.fromJson(v));
}); });
} }
// if (json['associated_product_ids'] != null) { // if (json['associated_product_ids'] != null) {
@ -403,7 +403,7 @@ class RecommendedProductModel {
data['namen'] = this.namen; data['namen'] = this.namen;
if (this.localizedNames != null) { if (this.localizedNames != null) {
data['localized_names'] = data['localized_names'] =
this.localizedNames.map((v) => v.toJson()).toList(); this.localizedNames!.map((v) => v.toJson()).toList();
} }
data['short_description'] = this.shortDescription; data['short_description'] = this.shortDescription;
data['short_descriptionn'] = this.shortDescriptionn; data['short_descriptionn'] = this.shortDescriptionn;
@ -519,14 +519,14 @@ class RecommendedProductModel {
// data['reviews'] = this.reviews.map((v) => v.toJson()).toList(); // data['reviews'] = this.reviews.map((v) => v.toJson()).toList();
// } // }
if (this.images != null) { if (this.images != null) {
data['images'] = this.images.map((v) => v.toJson()).toList(); data['images'] = this.images!.map((v) => v.toJson()).toList();
} }
// if (this.attributes != null) { // if (this.attributes != null) {
// data['attributes'] = this.attributes.map((v) => v.toJson()).toList(); // data['attributes'] = this.attributes.map((v) => v.toJson()).toList();
// } // }
if (this.specifications != null) { if (this.specifications != null) {
data['specifications'] = data['specifications'] =
this.specifications.map((v) => v.toJson()).toList(); this.specifications!.map((v) => v.toJson()).toList();
} }
// if (this.associatedProductIds != null) { // if (this.associatedProductIds != null) {
// data['associated_product_ids'] = // data['associated_product_ids'] =
@ -544,7 +544,7 @@ class RecommendedProductModel {
class LocalizedNames { class LocalizedNames {
dynamic languageId; dynamic languageId;
String localizedName; String? localizedName;
LocalizedNames({this.languageId, this.localizedName}); LocalizedNames({this.languageId, this.localizedName});
@ -564,9 +564,9 @@ class LocalizedNames {
class Images { class Images {
dynamic id; dynamic id;
dynamic position; dynamic position;
String src; String? src;
String thumb; String? thumb;
String attachment; String? attachment;
Images({this.id, this.position, this.src, this.thumb, this.attachment}); Images({this.id, this.position, this.src, this.thumb, this.attachment});
@ -592,10 +592,10 @@ class Images {
class Specifications { class Specifications {
dynamic id; dynamic id;
dynamic displayOrder; dynamic displayOrder;
String defaultValue; String? defaultValue;
String defaultValuen; String? defaultValuen;
String name; String? name;
String nameN; String? nameN;
Specifications( Specifications(
{this.id, {this.id,

Loading…
Cancel
Save