Action.create constructor
Action.create({})
Implementation
factory Action.create({
required String method,
required Map<String, dynamic> params,
bool optional = false,
}) {
return Action(
method: method,
paramsJson: jsonEncode(params),
optional: optional,
);
}