ActionModel class

Constructors

ActionModel({String? id, required String title, required String name, required String handler, required List<String> method, int priority = 0, bool enabled = true, required Map<String, dynamic> settings, Map<String, dynamic>? condition})
ActionModel.fromJson(Map<String, dynamic> json)
Creates an ActionModel from Form.io JSON response.
factory

Properties

condition Map<String, dynamic>?
Conditions that must be met for the action to execute.
final
enabled bool
Whether this action is currently enabled.
final
handler String
The handler type for this action. Examples: 'email', 'webhook', 'role', 'save', 'login'
final
hashCode int
The hash code for this object.
no setterinherited
id String?
Unique identifier of the action.
final
method List<String>
The event method that triggers this action. Examples: 'create', 'update', 'delete', 'read'
final
name String
Internal name/key of the action.
final
priority int
Priority order for execution (lower numbers execute first).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings Map<String, dynamic>
Configuration settings specific to the handler type. For email: {to, from, subject, message, template} For webhook: {url, method, headers} For role: {role, type, association}
final
title String
Display title of the action.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the ActionModel to JSON for API requests.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited