create method
Future<SubscriptionModel>
create({
- required SubscriptionRequestMessage request,
- String customApiToken = '',
Implementation
Future<SubscriptionModel> create({required SubscriptionRequestMessage request, String customApiToken = ''}) async {
var result = await apiResource.post(data: request.toMap(), apiUserToken: customApiToken);
return SubscriptionModel.fromMap(result);
}