fromMap static method
Implementation
static Workflow? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return Workflow(
object: readText(source['object']),
id: readText(source['id']),
status: readText(source['status']),
code: readAny(source['code']),
name: readText(source['name']),
displayName: readText(source['display_name']),
description: readAny(source['description']),
entity: readText(source['entity']),
entityId: readInteger(source['entity_id']),
event: readText(source['event']),
isPreBuilt: readFlag(source['is_pre_built']),
enableStage: readFlag(source['enable_stage']),
currentVersion: WorkflowCurrentVersion.fromMap(source['current_version']),
customForm: readAny(source['custom_form']),
createdOn: readText(source['created_on']),
lastUpdatedOn: readText(source['last_updated_on']),
createdBy: WorkflowCreatedBy.fromMap(source['created_by']),
lastUpdatedBy: WorkflowLastUpdatedBy.fromMap(source['last_updated_by']),
href: readText(source['href']),
);
}