fromMap static method
Implementation
static SettingsOrganisation? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'organization');
if (source == null) return null;
return SettingsOrganisation(
addressLine1: readAny(source['address_line1']),
addressLine2: readAny(source['address_line2']),
addressLine3: readAny(source['address_line3']),
addressLine4: readAny(source['address_line4']),
addressLine5: readAny(source['address_line5']),
city: readAny(source['city']),
createdBy: readAny(source['created_by']),
createdOn: readText(source['created_on']),
description: readAny(source['description']),
details: readAny(source['details']),
displayName: readText(source['display_name']),
email: readAny(source['email']),
fax: readAny(source['fax']),
faxAreaCode: readAny(source['fax_area_code']),
faxCountryCode: readAny(source['fax_country_code']),
href: readText(source['href']),
id: readText(source['id']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
mobile: readAny(source['mobile']),
mobileAreaCode: readAny(source['mobile_area_code']),
mobileCountryCode: readAny(source['mobile_country_code']),
name: readText(source['name']),
nodes: readList<Object>(source['nodes'], readAny),
object: readText(source['object']),
parentOrganization: SettingsOrganisationParentOrganization.fromMap(
source['parent_organization']),
phone: readAny(source['phone']),
phoneAreaCode: readAny(source['phone_area_code']),
phoneCountryCode: readAny(source['phone_country_code']),
postCode: readAny(source['post_code']),
state: readAny(source['state']),
status: readText(source['status']),
type: readText(source['type']),
website: readAny(source['website']),
);
}