@ -35,7 +35,7 @@ class Wishlist {
dynamic languageId ;
dynamic languageId ;
dynamic id ;
dynamic id ;
List < dynamic > productAttributes ;
List < dynamic > ? productAttributes ;
dynamic customerEnteredPrice ;
dynamic customerEnteredPrice ;
dynamic quantity ;
dynamic quantity ;
dynamic discountAmountInclTax ;
dynamic discountAmountInclTax ;
@ -53,7 +53,7 @@ class Wishlist {
dynamic productId ;
dynamic productId ;
dynamic product ;
dynamic product ;
dynamic customerId ;
dynamic customerId ;
Customer customer ;
Customer ? customer ;
factory Wishlist . fromJson ( Map < String , dynamic > json ) = > Wishlist (
factory Wishlist . fromJson ( Map < String , dynamic > json ) = > Wishlist (
languageId: json [ " language_id " ] ,
languageId: json [ " language_id " ] ,
@ -82,7 +82,7 @@ class Wishlist {
Map < String , dynamic > toJson ( ) = > {
Map < String , dynamic > toJson ( ) = > {
" language_id " : languageId ,
" language_id " : languageId ,
" id " : id ,
" id " : id ,
" product_attributes " : List < dynamic > . from ( productAttributes . map ( ( x ) = > x ) ) ,
" product_attributes " : List < dynamic > . from ( productAttributes ! . map ( ( x ) = > x ) ) ,
" customer_entered_price " : customerEnteredPrice ,
" customer_entered_price " : customerEnteredPrice ,
" quantity " : quantity ,
" quantity " : quantity ,
" discount_amount_incl_tax " : discountAmountInclTax ,
" discount_amount_incl_tax " : discountAmountInclTax ,
@ -100,7 +100,7 @@ class Wishlist {
" product_id " : productId ,
" product_id " : productId ,
" product " : product . toJson ( ) ,
" product " : product . toJson ( ) ,
" customer_id " : customerId ,
" customer_id " : customerId ,
" customer " : customer . toJson ( ) ,
" customer " : customer ! . toJson ( ) ,
} ;
} ;
}
}
@ -130,28 +130,28 @@ class Customer {
this . roleIds ,
this . roleIds ,
} ) ;
} ) ;
Address billingAddress ;
Address ? billingAddress ;
Address shippingAddress ;
Address ? shippingAddress ;
List < Address > addresses ;
List < Address > ? addresses ;
String id ;
String ? id ;
String username ;
String ? username ;
String email ;
String ? email ;
dynamic firstName ;
dynamic firstName ;
dynamic lastName ;
dynamic lastName ;
dynamic languageId ;
dynamic languageId ;
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 ;
String lastIpAddress ;
String ? lastIpAddress ;
DateTime createdOnUtc ;
DateTime ? createdOnUtc ;
DateTime lastLoginDateUtc ;
DateTime ? lastLoginDateUtc ;
DateTime lastActivityDateUtc ;
DateTime ? lastActivityDateUtc ;
dynamic registeredInStoreId ;
dynamic registeredInStoreId ;
List < dynamic > roleIds ;
List < dynamic > ? roleIds ;
factory Customer . fromJson ( Map < String , dynamic > json ) = > Customer (
factory Customer . fromJson ( Map < String , dynamic > json ) = > Customer (
billingAddress: Address . fromJson ( json [ " billing_address " ] ) ,
billingAddress: Address . fromJson ( json [ " billing_address " ] ) ,
@ -179,9 +179,9 @@ class Customer {
) ;
) ;
Map < String , dynamic > toJson ( ) = > {
Map < String , dynamic > toJson ( ) = > {
" billing_address " : billingAddress . toJson ( ) ,
" billing_address " : billingAddress ! . toJson ( ) ,
" shipping_address " : shippingAddress . toJson ( ) ,
" shipping_address " : shippingAddress ! . toJson ( ) ,
" addresses " : List < dynamic > . from ( addresses . map ( ( x ) = > x . toJson ( ) ) ) ,
" addresses " : List < dynamic > . from ( addresses ! . map ( ( x ) = > x . toJson ( ) ) ) ,
" id " : id ,
" id " : id ,
" username " : username ,
" username " : username ,
" email " : email ,
" email " : email ,
@ -196,11 +196,11 @@ class Customer {
" is_system_account " : isSystemAccount ,
" is_system_account " : isSystemAccount ,
" system_name " : systemName ,
" system_name " : systemName ,
" last_ip_address " : lastIpAddress ,
" last_ip_address " : lastIpAddress ,
" created_on_utc " : createdOnUtc . toIso8601String ( ) ,
" created_on_utc " : createdOnUtc ! . toIso8601String ( ) ,
" last_login_date_utc " : lastLoginDateUtc . toIso8601String ( ) ,
" last_login_date_utc " : lastLoginDateUtc ! . toIso8601String ( ) ,
" last_activity_date_utc " : lastActivityDateUtc . toIso8601String ( ) ,
" last_activity_date_utc " : lastActivityDateUtc ! . toIso8601String ( ) ,
" registered_in_store_id " : registeredInStoreId ,
" registered_in_store_id " : registeredInStoreId ,
" role_ids " : List < dynamic > . from ( roleIds . map ( ( x ) = > x ) ) ,
" role_ids " : List < dynamic > . from ( roleIds ! . map ( ( x ) = > x ) ) ,
} ;
} ;
}
}
@ -226,35 +226,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 ;
dynamic countryId ;
dynamic 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 " ] ,
@ -282,7 +282,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 ,
} ;
} ;
@ -437,117 +437,117 @@ class Product {
this . seName ,
this . seName ,
} ) ;
} ) ;
String id ;
String ? id ;
bool visibleIndividually ;
bool ? visibleIndividually ;
String name ;
String ? name ;
String namen ;
String ? namen ;
List < LocalizedName > localizedNames ;
List < LocalizedName > ? localizedNames ;
String shortDescription ;
String ? shortDescription ;
String shortDescriptionn ;
String ? shortDescriptionn ;
String fullDescription ;
String ? fullDescription ;
String fullDescriptionn ;
String ? 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 ;
String sku ;
String ? 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 ;
String stockAvailability ;
String ? stockAvailability ;
String stockAvailabilityn ;
String ? 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 ;
/ / dynamic allowedQuantities ;
/ / dynamic 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 ;
double price ;
double ? price ;
dynamic oldPrice ;
dynamic oldPrice ;
double productCost ;
double ? 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 ;
dynamic discountDescriptionn ;
dynamic discountDescriptionn ;
dynamic discountPercentage ;
dynamic discountPercentage ;
String currency ;
String ? currency ;
String currencyn ;
String ? currencyn ;
double weight ;
double ? weight ;
dynamic length ;
dynamic length ;
dynamic width ;
dynamic width ;
dynamic height ;
dynamic height ;
dynamic availableStartDateTimeUtc ;
dynamic availableStartDateTimeUtc ;
dynamic availableEndDateTimeUtc ;
dynamic availableEndDateTimeUtc ;
dynamic displayOrder ;
dynamic displayOrder ;
bool published ;
bool ? published ;
bool deleted ;
bool ? deleted ;
DateTime createdOnUtc ;
DateTime ? createdOnUtc ;
DateTime updatedOnUtc ;
DateTime ? updatedOnUtc ;
String productType ;
String ? productType ;
dynamic parentGroupedProductId ;
dynamic parentGroupedProductId ;
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 < Image > images ;
List < Image > ? images ;
List < dynamic > attributes ;
List < dynamic > ? attributes ;
List < Specification > specifications ;
List < Specification > ? specifications ;
List < dynamic > associatedProductIds ;
List < dynamic > ? associatedProductIds ;
List < dynamic > tags ;
List < dynamic > ? tags ;
dynamic vendorId ;
dynamic vendorId ;
String seName ;
String ? seName ;
factory Product . fromJson ( Map < String , dynamic > json ) = > Product (
factory Product . fromJson ( Map < String , dynamic > json ) = > Product (
id: json [ " id " ] ,
id: json [ " id " ] ,
@ -668,7 +668,7 @@ class Product {
" visible_individually " : visibleIndividually ,
" visible_individually " : visibleIndividually ,
" name " : name ,
" name " : name ,
" namen " : namen ,
" namen " : namen ,
" localized_names " : List < dynamic > . from ( localizedNames . map ( ( x ) = > x . toJson ( ) ) ) ,
" localized_names " : List < dynamic > . from ( localizedNames ! . map ( ( x ) = > x . toJson ( ) ) ) ,
" short_description " : shortDescription ,
" short_description " : shortDescription ,
" short_descriptionn " : shortDescriptionn ,
" short_descriptionn " : shortDescriptionn ,
" full_description " : fullDescription ,
" full_description " : fullDescription ,
@ -759,20 +759,20 @@ class Product {
" display_order " : displayOrder ,
" display_order " : displayOrder ,
" published " : published ,
" published " : published ,
" deleted " : deleted ,
" deleted " : deleted ,
" created_on_utc " : createdOnUtc . toIso8601String ( ) ,
" created_on_utc " : createdOnUtc ! . toIso8601String ( ) ,
" updated_on_utc " : updatedOnUtc . toIso8601String ( ) ,
" updated_on_utc " : updatedOnUtc ! . toIso8601String ( ) ,
" product_type " : productType ,
" product_type " : productType ,
" parent_grouped_product_id " : parentGroupedProductId ,
" parent_grouped_product_id " : parentGroupedProductId ,
" role_ids " : List < dynamic > . from ( roleIds . map ( ( x ) = > x ) ) ,
" role_ids " : List < dynamic > . from ( roleIds ! . map ( ( x ) = > x ) ) ,
" discount_ids " : List < dynamic > . from ( discountIds . map ( ( x ) = > x ) ) ,
" discount_ids " : List < dynamic > . from ( discountIds ! . map ( ( x ) = > x ) ) ,
" store_ids " : List < dynamic > . from ( storeIds . map ( ( x ) = > x ) ) ,
" store_ids " : List < dynamic > . from ( storeIds ! . map ( ( x ) = > x ) ) ,
" manufacturer_ids " : List < dynamic > . from ( manufacturerIds . map ( ( x ) = > x ) ) ,
" manufacturer_ids " : List < dynamic > . from ( manufacturerIds ! . map ( ( x ) = > x ) ) ,
" reviews " : List < dynamic > . from ( reviews . map ( ( x ) = > x ) ) ,
" reviews " : List < dynamic > . from ( reviews ! . map ( ( x ) = > x ) ) ,
" images " : List < dynamic > . from ( images . map ( ( x ) = > x . toJson ( ) ) ) ,
" images " : List < dynamic > . from ( images ! . map ( ( x ) = > x . toJson ( ) ) ) ,
" attributes " : List < dynamic > . from ( attributes . map ( ( x ) = > x ) ) ,
" attributes " : List < dynamic > . from ( attributes ! . map ( ( x ) = > x ) ) ,
" specifications " : List < dynamic > . from ( specifications . map ( ( x ) = > x . toJson ( ) ) ) ,
" specifications " : List < dynamic > . from ( specifications ! . map ( ( x ) = > x . toJson ( ) ) ) ,
" associated_product_ids " : List < dynamic > . from ( associatedProductIds . map ( ( x ) = > x ) ) ,
" associated_product_ids " : List < dynamic > . from ( associatedProductIds ! . map ( ( x ) = > x ) ) ,
" tags " : List < dynamic > . from ( tags . map ( ( x ) = > x ) ) ,
" tags " : List < dynamic > . from ( tags ! . map ( ( x ) = > x ) ) ,
" vendor_id " : vendorId ,
" vendor_id " : vendorId ,
" se_name " : seName ,
" se_name " : seName ,
} ;
} ;
@ -789,9 +789,9 @@ class Image {
dynamic id ;
dynamic id ;
dynamic position ;
dynamic position ;
String src ;
String ? src ;
String thumb ;
String ? thumb ;
String attachment ;
String ? attachment ;
factory Image . fromJson ( Map < String , dynamic > json ) = > Image (
factory Image . fromJson ( Map < String , dynamic > json ) = > Image (
id: json [ " id " ] ,
id: json [ " id " ] ,
@ -817,7 +817,7 @@ class LocalizedName {
} ) ;
} ) ;
dynamic languageId ;
dynamic languageId ;
String localizedName ;
String ? localizedName ;
factory LocalizedName . fromJson ( Map < String , dynamic > json ) = > LocalizedName (
factory LocalizedName . fromJson ( Map < String , dynamic > json ) = > LocalizedName (
languageId: json [ " language_id " ] ,
languageId: json [ " language_id " ] ,
@ -842,10 +842,10 @@ class Specification {
dynamic id ;
dynamic id ;
dynamic displayOrder ;
dynamic displayOrder ;
String defaultValue ;
String ? defaultValue ;
String defaultValuen ;
String ? defaultValuen ;
String name ;
String ? name ;
String nameN ;
String ? nameN ;
factory Specification . fromJson ( Map < String , dynamic > json ) = > Specification (
factory Specification . fromJson ( Map < String , dynamic > json ) = > Specification (
id: json [ " id " ] ,
id: json [ " id " ] ,
@ -867,15 +867,15 @@ class Specification {
}
}
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 ! ;
}
}
}
}