/* Options: Date: 2026-08-17 09:14: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: GiftCardTypesSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GiftCardType implements IConvertible { int? id; String? name; String? scope; int? ownerId; String? currency; int? defaultExpiryMonths; bool? isActive; DateTime? createdAt; GiftCardType({this.id,this.name,this.scope,this.ownerId,this.currency,this.defaultExpiryMonths,this.isActive,this.createdAt}); GiftCardType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; scope = json['scope']; ownerId = json['ownerId']; currency = json['currency']; defaultExpiryMonths = json['defaultExpiryMonths']; isActive = json['isActive']; createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'scope': scope, 'ownerId': ownerId, 'currency': currency, 'defaultExpiryMonths': defaultExpiryMonths, 'isActive': isActive, 'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!) }; getTypeName() => "GiftCardType"; TypeContext? context = _ctx; } class GiftCardTypesResult implements IConvertible { List? items; int? statusCode; String? message; GiftCardTypesResult({this.items,this.statusCode,this.message}); GiftCardTypesResult.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() => "GiftCardTypesResult"; TypeContext? context = _ctx; } // @Route("/GiftCardType/Search", "POST") class GiftCardTypesSearchRequest implements IReturn, IConvertible { String? scope; int? ownerId; GiftCardTypesSearchRequest({this.scope,this.ownerId}); GiftCardTypesSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { scope = json['scope']; ownerId = json['ownerId']; return this; } Map toJson() => { 'scope': scope, 'ownerId': ownerId }; createResponse() => GiftCardTypesResult(); getResponseTypeName() => "GiftCardTypesResult"; getTypeName() => "GiftCardTypesSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'GiftCardType': TypeInfo(TypeOf.Class, create:() => GiftCardType()), 'GiftCardTypesResult': TypeInfo(TypeOf.Class, create:() => GiftCardTypesResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GiftCardTypesSearchRequest': TypeInfo(TypeOf.Class, create:() => GiftCardTypesSearchRequest()), });