customerTokenInfo method

Future<void> customerTokenInfo(
  1. Map<String, dynamic> request,
  2. dynamic response(
    1. Map<String, dynamic>
    ),
  3. dynamic error(
    1. dynamic
    )
)

Implementation

Future<void> customerTokenInfo(Map<String, dynamic> request, Function(Map<String, dynamic>) response, Function(dynamic) error) async {

  try {

    response.call(json.decode(await _api.customerTokenInfo(json.encode(request))));
  } catch (e) {

    error.call(e);
  }
}