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