fromMap static method

WorkflowMilestone? fromMap(
  1. Object? body
)

Implementation

static WorkflowMilestone? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return WorkflowMilestone(
    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: WorkflowMilestoneWorkflow.fromMap(source['workflow']),
    workflowVersion:
        WorkflowMilestoneWorkflowVersion.fromMap(source['workflow_version']),
  );
}