toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"name": name,
"email": email,
"domain": domain,
"province": province,
"country": country,
"address1": address1,
"zip": zip,
"city": city,
"source": source,
"phone": phone,
"latitude": latitude,
"longitude": longitude,
"primary_locale": primaryLocale,
"address2": address2,
"created_at": createdAt?.toIso8601String(),
"updated_at": updatedAt?.toIso8601String(),
"country_code": countryCode,
"country_name": countryName,
"currency": currency,
"customer_email": customerEmail,
"timezone": timezone,
"iana_timezone": ianaTimezone,
"shop_owner": shopOwner,
"money_format": moneyFormat,
"money_with_currency_format": moneyWithCurrencyFormat,
"weight_unit": weightUnit,
"province_code": provinceCode,
"taxes_included": taxesIncluded,
"auto_configure_tax_inclusivity": autoConfigureTaxInclusivity,
"tax_shipping": taxShipping,
"county_taxes": countyTaxes,
"plan_display_name": planDisplayName,
"plan_name": planName,
"has_discounts": hasDiscounts,
"has_gift_cards": hasGiftCards,
"myshopify_domain": myshopifyDomain,
"google_apps_domain": googleAppsDomain,
"google_apps_login_enabled": googleAppsLoginEnabled,
"money_in_emails_format": moneyInEmailsFormat,
"money_with_currency_in_emails_format": moneyWithCurrencyInEmailsFormat,
"eligible_for_payments": eligibleForPayments,
"requires_extra_payments_agreement": requiresExtraPaymentsAgreement,
"password_enabled": passwordEnabled,
"has_storefront": hasStorefront,
"finances": finances,
"primary_location_id": primaryLocationId,
"cookie_consent_level": cookieConsentLevel,
"checkout_api_supported": checkoutApiSupported,
"multi_location_enabled": multiLocationEnabled,
"setup_required": setupRequired,
"pre_launch_enabled": preLaunchEnabled,
"enabled_presentment_currencies": enabledPresentmentCurrencies == null
? []
: List<dynamic>.from(enabledPresentmentCurrencies!.map((x) => x)),
"transactional_sms_disabled": transactionalSmsDisabled,
"marketing_sms_consent_enabled_at_checkout":
marketingSmsConsentEnabledAtCheckout,
};