PurchaseResponse.from constructor
PurchaseResponse.from({})
Returns the new instance of PurchaseResponse based on arguments.
Implementation
PurchaseResponse.from({
required int statusCode,
required String reasonPhrase,
required Map<String, String> headers,
required this.invoice,
}) : super.from(
status: Status.from(
code: statusCode,
reasonPhrase: reasonPhrase,
),
headers: headers,
);