getByIdentifier method

Future<PlanModel> getByIdentifier({
  1. required String planIdentifier,
  2. String customApiToken = '',
})

Implementation

Future<PlanModel> getByIdentifier({required String planIdentifier, String customApiToken = ''}) async {
  var result = await apiResource.getById(partOfUrl: "/identifier/$planIdentifier", apiUserToken: customApiToken);
  return PlanModel.fromMap(result);
}