StripeApiError constructor
Implementation
factory StripeApiError(String? requestId, Map<String, dynamic> json) {
final type = optString(json, fieldType);
final charge = optString(json, fieldCharge);
final code = optString(json, fieldCode);
final declineCode = optString(json, fieldDeclineCode);
final docUrl = optString(json, fieldDocUrl);
final message = optString(json, fieldMessage);
final param = optString(json, fieldParam);
return StripeApiError._internal(
requestId,
type,
charge,
code,
declineCode,
docUrl,
message,
param,
);
}