/* Options: Date: 2026-10-01 10:23:13 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: SelfServiceAvailableSeatsRequest.* //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 SelfServiceSeatOption implements IConvertible { int? seatId; String? seatName; String? label; String? status; bool? isSeat; bool? selectable; double? positionX; double? positionY; double? rotation; double? sortOrder; int? rowId; String? rowName; SelfServiceSeatOption({this.seatId,this.seatName,this.label,this.status,this.isSeat,this.selectable,this.positionX,this.positionY,this.rotation,this.sortOrder,this.rowId,this.rowName}); SelfServiceSeatOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { seatId = json['seatId']; seatName = json['seatName']; label = json['label']; status = json['status']; isSeat = json['isSeat']; selectable = json['selectable']; positionX = JsonConverters.toDouble(json['positionX']); positionY = JsonConverters.toDouble(json['positionY']); rotation = JsonConverters.toDouble(json['rotation']); sortOrder = JsonConverters.toDouble(json['sortOrder']); rowId = json['rowId']; rowName = json['rowName']; return this; } Map toJson() => { 'seatId': seatId, 'seatName': seatName, 'label': label, 'status': status, 'isSeat': isSeat, 'selectable': selectable, 'positionX': positionX, 'positionY': positionY, 'rotation': rotation, 'sortOrder': sortOrder, 'rowId': rowId, 'rowName': rowName }; getTypeName() => "SelfServiceSeatOption"; TypeContext? context = _ctx; } class SelfServiceSeatSection implements IConvertible { int? sectionId; String? sectionName; double? positionX; double? positionY; double? rotation; String? viewType; List? seats; SelfServiceSeatSection({this.sectionId,this.sectionName,this.positionX,this.positionY,this.rotation,this.viewType,this.seats}); SelfServiceSeatSection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sectionId = json['sectionId']; sectionName = json['sectionName']; positionX = JsonConverters.toDouble(json['positionX']); positionY = JsonConverters.toDouble(json['positionY']); rotation = JsonConverters.toDouble(json['rotation']); viewType = json['viewType']; seats = JsonConverters.fromJson(json['seats'],'List',context!); return this; } Map toJson() => { 'sectionId': sectionId, 'sectionName': sectionName, 'positionX': positionX, 'positionY': positionY, 'rotation': rotation, 'viewType': viewType, 'seats': JsonConverters.toJson(seats,'List',context!) }; getTypeName() => "SelfServiceSeatSection"; TypeContext? context = _ctx; } class SelfServiceAvailableSeatsResult extends SelfServiceTransferResultBase implements IConvertible { int? toEventId; String? toTicketTypeName; int? assignedSeatId; String? assignedSeatLabel; List? sections; int? totalSeats; int? selectableSeats; bool? truncated; SelfServiceAvailableSeatsResult({this.toEventId,this.toTicketTypeName,this.assignedSeatId,this.assignedSeatLabel,this.sections,this.totalSeats,this.selectableSeats,this.truncated}); SelfServiceAvailableSeatsResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); toEventId = json['toEventId']; toTicketTypeName = json['toTicketTypeName']; assignedSeatId = json['assignedSeatId']; assignedSeatLabel = json['assignedSeatLabel']; sections = JsonConverters.fromJson(json['sections'],'List',context!); totalSeats = json['totalSeats']; selectableSeats = json['selectableSeats']; truncated = json['truncated']; return this; } Map toJson() => super.toJson()..addAll({ 'toEventId': toEventId, 'toTicketTypeName': toTicketTypeName, 'assignedSeatId': assignedSeatId, 'assignedSeatLabel': assignedSeatLabel, 'sections': JsonConverters.toJson(sections,'List',context!), 'totalSeats': totalSeats, 'selectableSeats': selectableSeats, 'truncated': truncated }); getTypeName() => "SelfServiceAvailableSeatsResult"; TypeContext? context = _ctx; } // @Route("/selfService/transferTicket/availableSeats", "POST") class SelfServiceAvailableSeatsRequest implements IReturn, IConvertible { String? ticketTokenId; String? buyerPhone; int? toEventId; int? toOwnerTicketTypeId; int? toSeriesTicketTypeId; SelfServiceAvailableSeatsRequest({this.ticketTokenId,this.buyerPhone,this.toEventId,this.toOwnerTicketTypeId,this.toSeriesTicketTypeId}); SelfServiceAvailableSeatsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ticketTokenId = json['ticketTokenId']; buyerPhone = json['buyerPhone']; toEventId = json['toEventId']; toOwnerTicketTypeId = json['toOwnerTicketTypeId']; toSeriesTicketTypeId = json['toSeriesTicketTypeId']; return this; } Map toJson() => { 'ticketTokenId': ticketTokenId, 'buyerPhone': buyerPhone, 'toEventId': toEventId, 'toOwnerTicketTypeId': toOwnerTicketTypeId, 'toSeriesTicketTypeId': toSeriesTicketTypeId }; createResponse() => SelfServiceAvailableSeatsResult(); getResponseTypeName() => "SelfServiceAvailableSeatsResult"; getTypeName() => "SelfServiceAvailableSeatsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'SelfServiceTransferResultBase': TypeInfo(TypeOf.Class, create:() => SelfServiceTransferResultBase()), 'SelfServiceSeatOption': TypeInfo(TypeOf.Class, create:() => SelfServiceSeatOption()), 'SelfServiceSeatSection': TypeInfo(TypeOf.Class, create:() => SelfServiceSeatSection()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SelfServiceAvailableSeatsResult': TypeInfo(TypeOf.Class, create:() => SelfServiceAvailableSeatsResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SelfServiceAvailableSeatsRequest': TypeInfo(TypeOf.Class, create:() => SelfServiceAvailableSeatsRequest()), });