APIAction class

Represents an action that makes an API request in a chat application.

This action is used to encapsulate details of an API request, including the URL, HTTP method, payload data, headers, and data key. It inherits the common 'actionType' property from the ActionEntity class.

Inheritance

Constructors

APIAction.new({required String url, required String method, Map<String, dynamic>? payload, Map<String, String>? headers, String? dataKey, String? type})
APIAction.fromMap(dynamic map)
factory

Properties

actionType String
getter/setter pairinherited
dataKey String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
getter/setter pair
method String
getter/setter pair
payload Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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