WooRefunds class

Represents a refund summary in a WooCommerce order.

Contains basic refund information including ID, reason, and total amount. Used for displaying refund summaries in order details.

Constructors

WooRefunds({int? id, String? reason, double? total})
Creates a new WooRefunds instance.
WooRefunds.fake()
factory
WooRefunds.fromJson(Map<String, dynamic> json)
Creates a WooRefunds instance from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
id int?
Unique identifier for the refund.
getter/setter pair
reason String?
Reason for the refund.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total double?
Total refund amount.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
Returns a string representation of the WooRefunds instance.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited