LocalizedErrorMessage constructor
- @JsonSerializable(explicitToJson: true)
const
LocalizedErrorMessage(
{ - @JsonKey(unknownEnumValue: FailureCode.Unknown) required FailureCode code,
- String? localizedMessage,
- String? message,
- String? stripeErrorCode,
- String? declineCode,
- String? type,
})
Implementation
@JsonSerializable(explicitToJson: true)
const factory LocalizedErrorMessage({
/// The error code for example Cancelled
@JsonKey(unknownEnumValue: FailureCode.Unknown) required FailureCode code,
/// Localized error message if any
String? localizedMessage,
/// Generic untranslated error message.
String? message,
/// Stripe error code
String? stripeErrorCode,
/// Code in case payment is declined
String? declineCode,
/// Error type
String? type,
}) = _LocalizedErrorMessage;