/* Options: Date: 2026-10-01 10:22:29 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: SelfServiceTransferQuoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SelfServiceTransferResultBase implements IConvertible { bool? ok; int? statusCode; String? code; String? message; SelfServiceTransferResultBase({this.ok,this.statusCode,this.code,this.message}); SelfServiceTransferResultBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ok = json['ok']; statusCode = json['statusCode']; code = json['code']; message = json['message']; return this; } Map toJson() => { 'ok': ok, 'statusCode': statusCode, 'code': code, 'message': message }; getTypeName() => "SelfServiceTransferResultBase"; TypeContext? context = _ctx; } class SelfServiceTransferQuoteResult extends SelfServiceTransferResultBase implements IConvertible { String? direction; double? priceDifference; double? sourceTicketPrice; double? targetTicketPrice; int? sourceEventId; String? sourceEventName; DateTime? sourceEventTimeOfEvent; int? toEventId; String? toEventName; DateTime? toEventTimeOfEvent; String? toTicketTypeName; bool? targetIsSeated; int? toSeatId; int? assignedSeatId; String? assignedSeatLabel; int? ticketsLeft; String? saleStatus; double? expectedPriceDifference; SelfServiceTransferQuoteResult({this.direction,this.priceDifference,this.sourceTicketPrice,this.targetTicketPrice,this.sourceEventId,this.sourceEventName,this.sourceEventTimeOfEvent,this.toEventId,this.toEventName,this.toEventTimeOfEvent,this.toTicketTypeName,this.targetIsSeated,this.toSeatId,this.assignedSeatId,this.assignedSeatLabel,this.ticketsLeft,this.saleStatus,this.expectedPriceDifference}); SelfServiceTransferQuoteResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); direction = json['direction']; priceDifference = JsonConverters.toDouble(json['priceDifference']); sourceTicketPrice = JsonConverters.toDouble(json['sourceTicketPrice']); targetTicketPrice = JsonConverters.toDouble(json['targetTicketPrice']); sourceEventId = json['sourceEventId']; sourceEventName = json['sourceEventName']; sourceEventTimeOfEvent = JsonConverters.fromJson(json['sourceEventTimeOfEvent'],'DateTime',context!); toEventId = json['toEventId']; toEventName = json['toEventName']; toEventTimeOfEvent = JsonConverters.fromJson(json['toEventTimeOfEvent'],'DateTime',context!); toTicketTypeName = json['toTicketTypeName']; targetIsSeated = json['targetIsSeated']; toSeatId = json['toSeatId']; assignedSeatId = json['assignedSeatId']; assignedSeatLabel = json['assignedSeatLabel']; ticketsLeft = json['ticketsLeft']; saleStatus = json['saleStatus']; expectedPriceDifference = JsonConverters.toDouble(json['expectedPriceDifference']); return this; } Map toJson() => super.toJson()..addAll({ 'direction': direction, 'priceDifference': priceDifference, 'sourceTicketPrice': sourceTicketPrice, 'targetTicketPrice': targetTicketPrice, 'sourceEventId': sourceEventId, 'sourceEventName': sourceEventName, 'sourceEventTimeOfEvent': JsonConverters.toJson(sourceEventTimeOfEvent,'DateTime',context!), 'toEventId': toEventId, 'toEventName': toEventName, 'toEventTimeOfEvent': JsonConverters.toJson(toEventTimeOfEvent,'DateTime',context!), 'toTicketTypeName': toTicketTypeName, 'targetIsSeated': targetIsSeated, 'toSeatId': toSeatId, 'assignedSeatId': assignedSeatId, 'assignedSeatLabel': assignedSeatLabel, 'ticketsLeft': ticketsLeft, 'saleStatus': saleStatus, 'expectedPriceDifference': expectedPriceDifference }); getTypeName() => "SelfServiceTransferQuoteResult"; TypeContext? context = _ctx; } // @Route("/selfService/transferTicket/quote", "POST") class SelfServiceTransferQuoteRequest implements IReturn, IConvertible { String? ticketTokenId; String? buyerPhone; int? toEventId; int? toOwnerTicketTypeId; int? toSeriesTicketTypeId; int? toSeatId; SelfServiceTransferQuoteRequest({this.ticketTokenId,this.buyerPhone,this.toEventId,this.toOwnerTicketTypeId,this.toSeriesTicketTypeId,this.toSeatId}); SelfServiceTransferQuoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ticketTokenId = json['ticketTokenId']; buyerPhone = json['buyerPhone']; toEventId = json['toEventId']; toOwnerTicketTypeId = json['toOwnerTicketTypeId']; toSeriesTicketTypeId = json['toSeriesTicketTypeId']; toSeatId = json['toSeatId']; return this; } Map toJson() => { 'ticketTokenId': ticketTokenId, 'buyerPhone': buyerPhone, 'toEventId': toEventId, 'toOwnerTicketTypeId': toOwnerTicketTypeId, 'toSeriesTicketTypeId': toSeriesTicketTypeId, 'toSeatId': toSeatId }; createResponse() => SelfServiceTransferQuoteResult(); getResponseTypeName() => "SelfServiceTransferQuoteResult"; getTypeName() => "SelfServiceTransferQuoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'SelfServiceTransferResultBase': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferResultBase()), 'SelfServiceTransferQuoteResult': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferQuoteResult()), 'SelfServiceTransferQuoteRequest': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferQuoteRequest()), });