fromMap static method
Implementation
static SettingsShippingProfileRead? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'shipping_profile');
if (source == null) return null;
return SettingsShippingProfileRead(
accountingCode: SettingsShippingProfileAccountingCode.fromMap(
source['accounting_code']),
createdBy: readAny(source['created_by']),
createdOn: readText(source['created_on']),
description: readText(source['description']),
displayName: readText(source['display_name']),
fixedAmount: readDecimal(source['fixed_amount']),
href: readText(source['href']),
id: readText(source['id']),
integrationConnection: readAny(source['integration_connection']),
invoiceNote: readText(source['invoice_note']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
name: readText(source['name']),
object: readText(source['object']),
priceTaxInclusive: readFlag(source['price_tax_inclusive']),
salesTaxRate: readDecimal(source['sales_tax_rate']),
shippingType: readText(source['shipping_type']),
status: readText(source['status']),
taxExempt: readFlag(source['tax_exempt']),
taxRule: SettingsShippingProfileTaxRule.fromMap(source['tax_rule']),
version: readInteger(source['version']),
);
}