HasuraAction class
Краткое описание
HasuraAction служит моделью данных для взаимодействия с Hasura.
В данный момент существует 6 action: applyDocument, cancelApplyDocument, createUser,
editOrder, importPayments, recalcOrder.
Описание полей:
- action - инфо о действии из хасуры.
- input - входные данные.
- sessionVariables - переменные сессии.
Методы:
- fromJson - Создает объект
HasuraActionиз JSON. - toJson - Преобразует объект
HasuraActionв JSON.
- Annotations
-
- @JsonSerializable()
Constructors
-
HasuraAction({required Map<
String, String> action, required Map<String, dynamic> input, required Map<String, String> sessionVariables}) -
HasuraAction.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
action
→ Map<
String, String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
input
→ Map<
String, dynamic> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sessionVariables
→ Map<
String, String> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited