RewardDet class
Represents a reward detail, including information about the reward type, design, and associated product data.
Constructors
- RewardDet({String? id, String? title, String? name, int? rewardTypeId, String? organizationId, DateTime? createdAt, String? orgCode, String? createdBy, DateTime? lastModifiedAt, String? lastModifiedBy, DesignDetails? designDetails, String? productIds, String? rewardCode, int? transactionAmount, String? rewardIcon})
- Constructor to initialize a RewardDet object.
-
RewardDet.fromJson(Map<
String, dynamic> json) -
Factory method to create a RewardDet from a JSON map.
factory
- RewardDet.fromRawJson(String str)
-
Converts a raw JSON string into a RewardDet object.
factory
Properties
- createdAt → DateTime?
-
Timestamp for when the reward was created.
final
- createdBy → String?
-
Identifier for the user or system that created the reward.
final
- designDetails → DesignDetails?
-
Design details associated with the reward, such as visuals or styling.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Unique identifier for the reward.
final
- lastModifiedAt → DateTime?
-
Timestamp for when the reward was last modified.
final
- lastModifiedBy → String?
-
Identifier for the user or system that last modified the reward.
final
- name → String?
-
Name of the reward.
final
- organizationId → String?
-
Identifier of the organization offering the reward.
final
- orgCode → String?
-
Organization code related to the reward (could be a part of business logic).
final
- productIds → String?
-
Comma-separated list of product IDs that are associated with the reward.
final
- rewardCode → String?
-
Unique code for the reward that could be used for redemption.
final
- rewardIcon → String?
-
Icon URL representing the reward (for UI display).
final
- rewardTypeId → int?
-
Identifier for the reward type (e.g., loyalty points, voucher).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String?
-
Title or name associated with the reward.
final
- transactionAmount → int?
-
The transaction amount associated with the reward (could be value, points, etc.).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object into a JSON map.
-
toRawJson(
) → String - Converts the RewardDet object into a raw JSON string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited