Action.create constructor

Action.create({
  1. required String method,
  2. required Map<String, dynamic> params,
  3. bool optional = false,
})

Implementation

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