/* Options: Date: 2026-08-17 09:17:24 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GiftCardSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GiftCardSummary implements IConvertible { int? id; int? giftCardTypeId; String? codeLast4; String? scope; int? scopeOwnerId; String? currency; int? initialValueMinor; int? currentBalanceMinor; String? status; DateTime? activatedAt; DateTime? expiresAt; DateTime? createdAt; String? buyerName; String? buyerEmail; String? buyerPhone; String? paymentId; String? paymentMethodId; String? purchasePaymentReference; GiftCardSummary({this.id,this.giftCardTypeId,this.codeLast4,this.scope,this.scopeOwnerId,this.currency,this.initialValueMinor,this.currentBalanceMinor,this.status,this.activatedAt,this.expiresAt,this.createdAt,this.buyerName,this.buyerEmail,this.buyerPhone,this.paymentId,this.paymentMethodId,this.purchasePaymentReference}); GiftCardSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; giftCardTypeId = json['giftCardTypeId']; codeLast4 = json['codeLast4']; scope = json['scope']; scopeOwnerId = json['scopeOwnerId']; currency = json['currency']; initialValueMinor = json['initialValueMinor']; currentBalanceMinor = json['currentBalanceMinor']; status = json['status']; activatedAt = JsonConverters.fromJson(json['activatedAt'],'DateTime',context!); expiresAt = JsonConverters.fromJson(json['expiresAt'],'DateTime',context!); createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); buyerName = json['buyerName']; buyerEmail = json['buyerEmail']; buyerPhone = json['buyerPhone']; paymentId = json['paymentId']; paymentMethodId = json['paymentMethodId']; purchasePaymentReference = json['purchasePaymentReference']; return this; } Map toJson() => { 'id': id, 'giftCardTypeId': giftCardTypeId, 'codeLast4': codeLast4, 'scope': scope, 'scopeOwnerId': scopeOwnerId, 'currency': currency, 'initialValueMinor': initialValueMinor, 'currentBalanceMinor': currentBalanceMinor, 'status': status, 'activatedAt': JsonConverters.toJson(activatedAt,'DateTime',context!), 'expiresAt': JsonConverters.toJson(expiresAt,'DateTime',context!), 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!), 'buyerName': buyerName, 'buyerEmail': buyerEmail, 'buyerPhone': buyerPhone, 'paymentId': paymentId, 'paymentMethodId': paymentMethodId, 'purchasePaymentReference': purchasePaymentReference }; getTypeName() => "GiftCardSummary"; TypeContext? context = _ctx; } class GiftCardSearchResult implements IConvertible { List? items; int? statusCode; String? message; GiftCardSearchResult({this.items,this.statusCode,this.message}); GiftCardSearchResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { items = JsonConverters.fromJson(json['items'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'items': JsonConverters.toJson(items,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "GiftCardSearchResult"; TypeContext? context = _ctx; } // @Route("/GiftCard/Search", "POST") class GiftCardSearchRequest implements IReturn, IConvertible { int? giftCardTypeId; String? scope; int? ownerId; String? status; String? codeLast4; GiftCardSearchRequest({this.giftCardTypeId,this.scope,this.ownerId,this.status,this.codeLast4}); GiftCardSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { giftCardTypeId = json['giftCardTypeId']; scope = json['scope']; ownerId = json['ownerId']; status = json['status']; codeLast4 = json['codeLast4']; return this; } Map toJson() => { 'giftCardTypeId': giftCardTypeId, 'scope': scope, 'ownerId': ownerId, 'status': status, 'codeLast4': codeLast4 }; createResponse() => GiftCardSearchResult(); getResponseTypeName() => "GiftCardSearchResult"; getTypeName() => "GiftCardSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'GiftCardSummary': TypeInfo(TypeOf.Class, create:() => GiftCardSummary()), 'GiftCardSearchResult': TypeInfo(TypeOf.Class, create:() => GiftCardSearchResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GiftCardSearchRequest': TypeInfo(TypeOf.Class, create:() => GiftCardSearchRequest()), });