retrieve method

  1. @override
Future<PaymentAttributesResponse> retrieve(
  1. int id
)
override

Retrieve data R

Implementation

@override
Future<PaymentAttributesResponse> retrieve(int id) async {
  final options = PayMongoOptions(
    path: '/payments/$id',
  );

  final response = await _httpClient.fetch(options);
  final json = serialize<Map<String, dynamic>>(response, options.path);

  return PaymentAttributesResponse.fromMap(json);
}