fetch method
Fetch an item given Item ID
@param itemId - The unique identifier of the item.
Implementation
Future<RazorpayItem> fetch({
required String itemId,
}) async {
if (itemId.isEmpty) {
throw ArgumentError('`item_id` is mandatory');
}
return api.get<RazorpayItem>(
{'url': '/items/$itemId'},
fromJsonFactory: RazorpayItem.fromJson,
).then((value) => value.data!);
}