/* Options: Date: 2025-06-27 01:27:21 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-autoupdates-live.smartnewapis.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TransferTicketRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Ticket implements IConvertible { int? id; int? userId; int? userAuthId; int? eventId; DateTime? timestampBought; DateTime? timestampActivated; DateTime? timeStampOrdered; String? deviceId; int? phoneVerificationId; String? paymentMethodId; String? paymentReference; String? ticketStatus; String? phoneVerificationNumber; String? ticketTokenId; String? paymentPhoneNumber; int? ticketTransferredFrom; String? originalPhoneVerificationNumber; int? teamPassId; String? paymentId; bool? isFree; String? freeTicketFromId; String? freeTicketFromTypeId; String? freeTicketCardTypeId; int? freeTicketCardId; double? totalPaidForTicket; String? seatsReservationId; DateTime? timeStampLastStatusChange; String? lastTicketStatus; String? scanCode; String? scanCodeType; bool? scanCodeNotActive; bool? multipleScanCodes; String? currency; bool? ticketHasExpired; Ticket({this.id,this.userId,this.userAuthId,this.eventId,this.timestampBought,this.timestampActivated,this.timeStampOrdered,this.deviceId,this.phoneVerificationId,this.paymentMethodId,this.paymentReference,this.ticketStatus,this.phoneVerificationNumber,this.ticketTokenId,this.paymentPhoneNumber,this.ticketTransferredFrom,this.originalPhoneVerificationNumber,this.teamPassId,this.paymentId,this.isFree,this.freeTicketFromId,this.freeTicketFromTypeId,this.freeTicketCardTypeId,this.freeTicketCardId,this.totalPaidForTicket,this.seatsReservationId,this.timeStampLastStatusChange,this.lastTicketStatus,this.scanCode,this.scanCodeType,this.scanCodeNotActive,this.multipleScanCodes,this.currency,this.ticketHasExpired}); Ticket.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userId = json['userId']; userAuthId = json['userAuthId']; eventId = json['eventId']; timestampBought = JsonConverters.fromJson(json['timestampBought'],'DateTime',context!); timestampActivated = JsonConverters.fromJson(json['timestampActivated'],'DateTime',context!); timeStampOrdered = JsonConverters.fromJson(json['timeStampOrdered'],'DateTime',context!); deviceId = json['deviceId']; phoneVerificationId = json['phoneVerificationId']; paymentMethodId = json['paymentMethodId']; paymentReference = json['paymentReference']; ticketStatus = json['ticketStatus']; phoneVerificationNumber = json['phoneVerificationNumber']; ticketTokenId = json['ticketTokenId']; paymentPhoneNumber = json['paymentPhoneNumber']; ticketTransferredFrom = json['ticketTransferredFrom']; originalPhoneVerificationNumber = json['originalPhoneVerificationNumber']; teamPassId = json['teamPassId']; paymentId = json['paymentId']; isFree = json['isFree']; freeTicketFromId = json['freeTicketFromId']; freeTicketFromTypeId = json['freeTicketFromTypeId']; freeTicketCardTypeId = json['freeTicketCardTypeId']; freeTicketCardId = json['freeTicketCardId']; totalPaidForTicket = JsonConverters.toDouble(json['totalPaidForTicket']); seatsReservationId = json['seatsReservationId']; timeStampLastStatusChange = JsonConverters.fromJson(json['timeStampLastStatusChange'],'DateTime',context!); lastTicketStatus = json['lastTicketStatus']; scanCode = json['scanCode']; scanCodeType = json['scanCodeType']; scanCodeNotActive = json['scanCodeNotActive']; multipleScanCodes = json['multipleScanCodes']; currency = json['currency']; ticketHasExpired = json['ticketHasExpired']; return this; } Map toJson() => { 'id': id, 'userId': userId, 'userAuthId': userAuthId, 'eventId': eventId, 'timestampBought': JsonConverters.toJson(timestampBought,'DateTime',context!), 'timestampActivated': JsonConverters.toJson(timestampActivated,'DateTime',context!), 'timeStampOrdered': JsonConverters.toJson(timeStampOrdered,'DateTime',context!), 'deviceId': deviceId, 'phoneVerificationId': phoneVerificationId, 'paymentMethodId': paymentMethodId, 'paymentReference': paymentReference, 'ticketStatus': ticketStatus, 'phoneVerificationNumber': phoneVerificationNumber, 'ticketTokenId': ticketTokenId, 'paymentPhoneNumber': paymentPhoneNumber, 'ticketTransferredFrom': ticketTransferredFrom, 'originalPhoneVerificationNumber': originalPhoneVerificationNumber, 'teamPassId': teamPassId, 'paymentId': paymentId, 'isFree': isFree, 'freeTicketFromId': freeTicketFromId, 'freeTicketFromTypeId': freeTicketFromTypeId, 'freeTicketCardTypeId': freeTicketCardTypeId, 'freeTicketCardId': freeTicketCardId, 'totalPaidForTicket': totalPaidForTicket, 'seatsReservationId': seatsReservationId, 'timeStampLastStatusChange': JsonConverters.toJson(timeStampLastStatusChange,'DateTime',context!), 'lastTicketStatus': lastTicketStatus, 'scanCode': scanCode, 'scanCodeType': scanCodeType, 'scanCodeNotActive': scanCodeNotActive, 'multipleScanCodes': multipleScanCodes, 'currency': currency, 'ticketHasExpired': ticketHasExpired }; getTypeName() => "Ticket"; TypeContext? context = _ctx; } class TicketDetails implements IConvertible { int? id; int? ticketId; int? eventSeriesTicketType; int? eventSeriesOwnerTicketType; double? ticketPrice; double? totalPrice; int? count; String? ticketColor; bool? showUsedTickets; String? ticketName; String? ticketDisplayString; int? ticketDetailsTransferredFrom; int? teamPassId; bool? isSpecialTicket; String? specialTicketId; bool? justChangedBySQL; DateTime? sqlJustChangedTimeStamp; String? currency; TicketDetails({this.id,this.ticketId,this.eventSeriesTicketType,this.eventSeriesOwnerTicketType,this.ticketPrice,this.totalPrice,this.count,this.ticketColor,this.showUsedTickets,this.ticketName,this.ticketDisplayString,this.ticketDetailsTransferredFrom,this.teamPassId,this.isSpecialTicket,this.specialTicketId,this.justChangedBySQL,this.sqlJustChangedTimeStamp,this.currency}); TicketDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ticketId = json['ticketId']; eventSeriesTicketType = json['eventSeriesTicketType']; eventSeriesOwnerTicketType = json['eventSeriesOwnerTicketType']; ticketPrice = JsonConverters.toDouble(json['ticketPrice']); totalPrice = JsonConverters.toDouble(json['totalPrice']); count = json['count']; ticketColor = json['ticketColor']; showUsedTickets = json['showUsedTickets']; ticketName = json['ticketName']; ticketDisplayString = json['ticketDisplayString']; ticketDetailsTransferredFrom = json['ticketDetailsTransferredFrom']; teamPassId = json['teamPassId']; isSpecialTicket = json['isSpecialTicket']; specialTicketId = json['specialTicketId']; justChangedBySQL = json['justChangedBySQL']; sqlJustChangedTimeStamp = JsonConverters.fromJson(json['sqlJustChangedTimeStamp'],'DateTime',context!); currency = json['currency']; return this; } Map toJson() => { 'id': id, 'ticketId': ticketId, 'eventSeriesTicketType': eventSeriesTicketType, 'eventSeriesOwnerTicketType': eventSeriesOwnerTicketType, 'ticketPrice': ticketPrice, 'totalPrice': totalPrice, 'count': count, 'ticketColor': ticketColor, 'showUsedTickets': showUsedTickets, 'ticketName': ticketName, 'ticketDisplayString': ticketDisplayString, 'ticketDetailsTransferredFrom': ticketDetailsTransferredFrom, 'teamPassId': teamPassId, 'isSpecialTicket': isSpecialTicket, 'specialTicketId': specialTicketId, 'justChangedBySQL': justChangedBySQL, 'sqlJustChangedTimeStamp': JsonConverters.toJson(sqlJustChangedTimeStamp,'DateTime',context!), 'currency': currency }; getTypeName() => "TicketDetails"; TypeContext? context = _ctx; } class TransferTicketResult implements IConvertible { int? statusCode; String? message; TransferTicketResult({this.statusCode,this.message}); TransferTicketResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'statusCode': statusCode, 'message': message }; getTypeName() => "TransferTicketResult"; TypeContext? context = _ctx; } // @Route("/TransferTicket", "POST") class TransferTicketRequest implements IReturn, IConvertible { String? transferFromPhoneVerificationNumber; String? transferFromDeviceId; String? transferToPhoneVerificationNumber; Ticket? eventTicket; List? eventTicketDetails; TransferTicketRequest({this.transferFromPhoneVerificationNumber,this.transferFromDeviceId,this.transferToPhoneVerificationNumber,this.eventTicket,this.eventTicketDetails}); TransferTicketRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { transferFromPhoneVerificationNumber = json['transferFromPhoneVerificationNumber']; transferFromDeviceId = json['transferFromDeviceId']; transferToPhoneVerificationNumber = json['transferToPhoneVerificationNumber']; eventTicket = JsonConverters.fromJson(json['eventTicket'],'Ticket',context!); eventTicketDetails = JsonConverters.fromJson(json['eventTicketDetails'],'List',context!); return this; } Map toJson() => { 'transferFromPhoneVerificationNumber': transferFromPhoneVerificationNumber, 'transferFromDeviceId': transferFromDeviceId, 'transferToPhoneVerificationNumber': transferToPhoneVerificationNumber, 'eventTicket': JsonConverters.toJson(eventTicket,'Ticket',context!), 'eventTicketDetails': JsonConverters.toJson(eventTicketDetails,'List',context!) }; createResponse() => TransferTicketResult(); getResponseTypeName() => "TransferTicketResult"; getTypeName() => "TransferTicketRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'Ticket': TypeInfo(TypeOf.Class, create:() => Ticket()), 'TicketDetails': TypeInfo(TypeOf.Class, create:() => TicketDetails()), 'TransferTicketResult': TypeInfo(TypeOf.Class, create:() => TransferTicketResult()), 'TransferTicketRequest': TypeInfo(TypeOf.Class, create:() => TransferTicketRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });