fromMap static method
Implementation
static WorkflowMilestoneView? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'workflow_milestone');
if (source == null) return null;
return WorkflowMilestoneView(
activityDefinition: WorkflowMilestoneActivityDefinition.fromMap(
source['activity_definition']),
autoCreate: readAny(source['auto_create']),
createdOn: readText(source['created_on']),
description: readAny(source['description']),
displayName: readText(source['display_name']),
estimatedHours: readAny(source['estimated_hours']),
href: readText(source['href']),
icon: readAny(source['icon']),
id: readText(source['id']),
lastUpdatedOn: readText(source['last_updated_on']),
name: readText(source['name']),
object: readText(source['object']),
priority: readText(source['priority']),
sortOrder: readAny(source['sort_order']),
status: readText(source['status']),
workflow: WorkflowMilestoneDetail.fromMap(source['workflow']),
workflowVersion:
WorkflowMilestoneWorkflowVersion.fromMap(source['workflow_version']),
);
}