fromMap static method
Implementation
static SettingsAccountGroup? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'account_group');
if (source == null) return null;
return SettingsAccountGroup(
accountingCode: readAny(source['accounting_code']),
customAttributes: readList<Object>(source['custom_attributes'], readAny),
description: readAny(source['description']),
displayName: readText(source['display_name']),
href: readText(source['href']),
id: readText(source['id']),
invoiceAccountMedia:
readList<String>(source['invoice_account_media'], readText),
managedBy: readAny(source['managed_by']),
name: readText(source['name']),
object: readText(source['object']),
pricingLevel: readAny(source['pricing_level']),
stateRule: SettingsAccountGroupStateRule.fromMap(source['state_rule']),
status: readText(source['status']),
);
}