/* Options: Date: 2025-05-06 14:18:09 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: EventSeriesOwnerTicketTypeUpdateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class EventSeriesOwnerTicketType implements IConvertible { int? id; String? name; double? defaultPrice; int? seriesId; int? ownerId; int? ticketTypeListOrder; bool? isActive; int? maxTickets; String? ticketColor; bool? showUsedTickets; bool? canOnlyBeBoughtWithTeamPass; bool? isSpecialTicket; String? specialTicketId; bool? onlyForKsi; DateTime? timestampCreated; DateTime? timestampLastChanged; bool? ticketsForSalePerEvent; String? imageUrl; bool? holderInfoRequired; int? eventSeriesOwnerSeatingSectionId; bool? canOnlyBeBought; bool? canNotBeBought; bool? blockTransfer; int? maxTicketsPerTransaction; bool? forceSingleTickets; int? onlyForEvent; String? currency; EventSeriesOwnerTicketType({this.id,this.name,this.defaultPrice,this.seriesId,this.ownerId,this.ticketTypeListOrder,this.isActive,this.maxTickets,this.ticketColor,this.showUsedTickets,this.canOnlyBeBoughtWithTeamPass,this.isSpecialTicket,this.specialTicketId,this.onlyForKsi,this.timestampCreated,this.timestampLastChanged,this.ticketsForSalePerEvent,this.imageUrl,this.holderInfoRequired,this.eventSeriesOwnerSeatingSectionId,this.canOnlyBeBought,this.canNotBeBought,this.blockTransfer,this.maxTicketsPerTransaction,this.forceSingleTickets,this.onlyForEvent,this.currency}); EventSeriesOwnerTicketType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; defaultPrice = JsonConverters.toDouble(json['defaultPrice']); seriesId = json['seriesId']; ownerId = json['ownerId']; ticketTypeListOrder = json['ticketTypeListOrder']; isActive = json['isActive']; maxTickets = json['maxTickets']; ticketColor = json['ticketColor']; showUsedTickets = json['showUsedTickets']; canOnlyBeBoughtWithTeamPass = json['canOnlyBeBoughtWithTeamPass']; isSpecialTicket = json['isSpecialTicket']; specialTicketId = json['specialTicketId']; onlyForKsi = json['onlyForKsi']; timestampCreated = JsonConverters.fromJson(json['timestampCreated'],'DateTime',context!); timestampLastChanged = JsonConverters.fromJson(json['timestampLastChanged'],'DateTime',context!); ticketsForSalePerEvent = json['ticketsForSalePerEvent']; imageUrl = json['imageUrl']; holderInfoRequired = json['holderInfoRequired']; eventSeriesOwnerSeatingSectionId = json['eventSeriesOwnerSeatingSectionId']; canOnlyBeBought = json['canOnlyBeBought']; canNotBeBought = json['canNotBeBought']; blockTransfer = json['blockTransfer']; maxTicketsPerTransaction = json['maxTicketsPerTransaction']; forceSingleTickets = json['forceSingleTickets']; onlyForEvent = json['onlyForEvent']; currency = json['currency']; return this; } Map toJson() => { 'id': id, 'name': name, 'defaultPrice': defaultPrice, 'seriesId': seriesId, 'ownerId': ownerId, 'ticketTypeListOrder': ticketTypeListOrder, 'isActive': isActive, 'maxTickets': maxTickets, 'ticketColor': ticketColor, 'showUsedTickets': showUsedTickets, 'canOnlyBeBoughtWithTeamPass': canOnlyBeBoughtWithTeamPass, 'isSpecialTicket': isSpecialTicket, 'specialTicketId': specialTicketId, 'onlyForKsi': onlyForKsi, 'timestampCreated': JsonConverters.toJson(timestampCreated,'DateTime',context!), 'timestampLastChanged': JsonConverters.toJson(timestampLastChanged,'DateTime',context!), 'ticketsForSalePerEvent': ticketsForSalePerEvent, 'imageUrl': imageUrl, 'holderInfoRequired': holderInfoRequired, 'eventSeriesOwnerSeatingSectionId': eventSeriesOwnerSeatingSectionId, 'canOnlyBeBought': canOnlyBeBought, 'canNotBeBought': canNotBeBought, 'blockTransfer': blockTransfer, 'maxTicketsPerTransaction': maxTicketsPerTransaction, 'forceSingleTickets': forceSingleTickets, 'onlyForEvent': onlyForEvent, 'currency': currency }; getTypeName() => "EventSeriesOwnerTicketType"; TypeContext? context = _ctx; } class EventSeriesOwnerTicketTypeResult implements IConvertible { EventSeriesOwnerTicketType? item; int? statusCode; String? message; EventSeriesOwnerTicketTypeResult({this.item,this.statusCode,this.message}); EventSeriesOwnerTicketTypeResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'EventSeriesOwnerTicketType',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'EventSeriesOwnerTicketType',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "EventSeriesOwnerTicketTypeResult"; TypeContext? context = _ctx; } // @Route("/EventSeriesOwnerTicketType", "PUT") class EventSeriesOwnerTicketTypeUpdateRequest implements IReturn, IConvertible { EventSeriesOwnerTicketType? item; EventSeriesOwnerTicketTypeUpdateRequest({this.item}); EventSeriesOwnerTicketTypeUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'EventSeriesOwnerTicketType',context!); return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'EventSeriesOwnerTicketType',context!) }; createResponse() => EventSeriesOwnerTicketTypeResult(); getResponseTypeName() => "EventSeriesOwnerTicketTypeResult"; getTypeName() => "EventSeriesOwnerTicketTypeUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'EventSeriesOwnerTicketType': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketType()), 'EventSeriesOwnerTicketTypeResult': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketTypeResult()), 'EventSeriesOwnerTicketTypeUpdateRequest': TypeInfo(TypeOf.Class, create:() => EventSeriesOwnerTicketTypeUpdateRequest()), });