getByIdentifier method

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

Implementation

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