fromMap static method
Implementation
static ComponentObjectRecord? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'custom_component_object');
if (source == null) return null;
return ComponentObjectRecord(
accounts: readList<Object>(source['accounts'], readAny),
attributeGroups: readList<Object>(source['attribute_groups'], readAny),
attributes: readList<Object>(source['attributes'], readAny),
code: readText(source['code']),
component: ComponentObjectCustomComponentObjectDetail.fromMap(
source['component']),
createdBy: readAny(source['created_by']),
createdOn: readText(source['created_on']),
customForm: ComponentObjectCustomComponentObjectCustomForm.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: readAny(source['last_updated_by']),
lastUpdatedOn: readText(source['last_updated_on']),
object: readText(source['object']),
orders: readList<Object>(source['orders'], readAny),
parents: readList<ComponentObjectCustomComponentObjectParent>(
source['parents'],
ComponentObjectCustomComponentObjectParent.fromMap),
quotes: readList<Object>(source['quotes'], readAny),
restrictions: readList<Object>(source['restrictions'], readAny),
status: readText(source['status']),
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']),
activityLogs: readList<ComponentObjectRecordActivityLog>(
source['activity_logs'], ComponentObjectRecordActivityLog.fromMap),
);
}