getCustomsDeclaration method

  1. @override
Future<Map> getCustomsDeclaration(
  1. String token,
  2. String customsDeclarationId
)
override

Implementation

@override
Future<Map> getCustomsDeclaration(
    String token, String customsDeclarationId) async {
  final baseUrl = await getBaseUrl;
  var url = Uri.parse(
      "$baseUrl/api/v1/pa/customs_declarations/$customsDeclarationId");
  var response = await http.get(
    url,
    headers: {"Authorization": "Bearer $token"},
  );
  var data = jsonDecode(response.body);
  return data;
}