create method

Future<PlanModel> create({
  1. required PlanRequestMessage plan,
  2. String customApiToken = '',
})
Cria um Plano possibilitando enviar um ApiToken customizado todo: describe plan parameter on CreateAsync todo: describe customApiToken parameter on CreateAsync

Implementation

Future<PlanModel> create({required PlanRequestMessage plan, String customApiToken = ''}) async {
  var result = await apiResource.post(data: plan.toMap(), apiUserToken: customApiToken);

  return PlanModel.fromMap(result);
}