retrieve method
Retrieve data R
Implementation
@override
Future<PaymentIntentResponse> retrieve(int id) async {
assert(!id.isNegative, "ID must be positive number");
final options = PayMongoOptions(path: 'payment_intents/$id');
final response = await _http.fetch(options);
final json = serialize<Map<String, dynamic>>(response, options.path);
return PaymentIntentResponse.fromMap(json);
}