createSubscription method
Implementation
@override
Future<Map> createSubscription(
String token, Map<String, dynamic> subInfo) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/subscriptions/create");
var jsonBody = jsonEncode(subInfo);
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token",
"x-jwt-account-id": "string"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
return data;
}