CreateGiftCardRequest class

Annotations
  • @JsonSerializable()

Constructors

CreateGiftCardRequest({required String idempotencyKey, required String locationId, required GiftCard giftCard})
const
CreateGiftCardRequest.fromJson(Map<String, dynamic> json)
Converts a Map to an CreateGiftCardRequest
factory

Properties

giftCard GiftCard
The gift card to create. The type field is required for this request. The gan_source and gan fields are included as follows:
final
hashCode int
The hash code for this object.
no setterinherited
idempotencyKey String
A unique identifier for this request, used to ensure idempotency.
final
locationId String
The ID of the location where the gift card should be registered for reporting purposes. Gift cards can be redeemed at any of the seller's locations.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a CreateGiftCardRequest to a Map
toString() String
A string representation of this object.
inherited

Operators

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