fromMap static method
Implementation
static ComponentObject? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'custom_component_object');
if (source == null) return null;
return ComponentObject(
accounts: readList<Object>(source['accounts'], readAny),
attributeGroups: readList<Object>(source['attribute_groups'], readAny),
attributes: readList<Object>(source['attributes'], readAny),
code: readText(source['code']),
component: ComponentObjectComponent.fromMap(source['component']),
createdBy: readText(source['created_by']),
createdOn: readText(source['created_on']),
customForm: ComponentObjectCustomForm.fromMap(source['custom_form']),
customObjects: readList<Object>(source['custom_objects'], readAny),
href: readText(source['href']),
id: readText(source['id']),
items: readList<Object>(source['items'], readAny),
lastUpdatedBy: readText(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
object: readText(source['object']),
orders: readList<Object>(source['orders'], readAny),
parents: readList<ComponentObjectParent>(
source['parents'], ComponentObjectParent.fromMap),
quotes: readList<Object>(source['quotes'], readAny),
restrictions: readList<Object>(source['restrictions'], readAny),
status: readText(source['status']),
uuid: readText(source['uuid']),
version: readInteger(source['version']),
workflowData: readList<Object>(source['workflow_data'], readAny),
workflowStage: readAny(source['workflow_stage']),
workflowStatus: readAny(source['workflow_status']),
workflowStatusUuid: readAny(source['workflow_status_uuid']),
);
}