toMap method

Map<String, dynamic> toMap()
override

Implementation

Map<String, dynamic> toMap() {
  return {
    "\$id": $id,
    "\$createdAt": $createdAt,
    "\$updatedAt": $updatedAt,
    "execute": execute,
    "name": name,
    "enabled": enabled,
    "runtime": runtime,
    "deployment": deployment,
    "vars": vars.map((p) => p.toMap()).toList(),
    "events": events,
    "schedule": schedule,
    "scheduleNext": scheduleNext,
    "schedulePrevious": schedulePrevious,
    "timeout": timeout,
  };
}