/* Options: Date: 2026-10-01 13:30:07 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: SeasonRolloverRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Season implements IConvertible { int? id; int? ownerId; String? name; DateTime? startUTC; DateTime? endUTC; bool? isActive; DateTime? timeStampCreatedUTC; DateTime? timeStampLastChangedUTC; Season({this.id,this.ownerId,this.name,this.startUTC,this.endUTC,this.isActive,this.timeStampCreatedUTC,this.timeStampLastChangedUTC}); Season.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; name = json['name']; startUTC = JsonConverters.fromJson(json['startUTC'],'DateTime',context!); endUTC = JsonConverters.fromJson(json['endUTC'],'DateTime',context!); isActive = json['isActive']; timeStampCreatedUTC = JsonConverters.fromJson(json['timeStampCreatedUTC'],'DateTime',context!); timeStampLastChangedUTC = JsonConverters.fromJson(json['timeStampLastChangedUTC'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'name': name, 'startUTC': JsonConverters.toJson(startUTC,'DateTime',context!), 'endUTC': JsonConverters.toJson(endUTC,'DateTime',context!), 'isActive': isActive, 'timeStampCreatedUTC': JsonConverters.toJson(timeStampCreatedUTC,'DateTime',context!), 'timeStampLastChangedUTC': JsonConverters.toJson(timeStampLastChangedUTC,'DateTime',context!) }; getTypeName() => "Season"; TypeContext? context = _ctx; } class SeasonRolloverClonedItem implements IConvertible { int? sourceCardTypeId; int? newCardTypeId; String? name; int? ticketTypeConnections; SeasonRolloverClonedItem({this.sourceCardTypeId,this.newCardTypeId,this.name,this.ticketTypeConnections}); SeasonRolloverClonedItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sourceCardTypeId = json['sourceCardTypeId']; newCardTypeId = json['newCardTypeId']; name = json['name']; ticketTypeConnections = json['ticketTypeConnections']; return this; } Map toJson() => { 'sourceCardTypeId': sourceCardTypeId, 'newCardTypeId': newCardTypeId, 'name': name, 'ticketTypeConnections': ticketTypeConnections }; getTypeName() => "SeasonRolloverClonedItem"; TypeContext? context = _ctx; } class SeasonRolloverResult implements IConvertible { int? newSeasonId; Season? newSeason; List? cloned; int? count; bool? preview; int? statusCode; String? message; SeasonRolloverResult({this.newSeasonId,this.newSeason,this.cloned,this.count,this.preview,this.statusCode,this.message}); SeasonRolloverResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { newSeasonId = json['newSeasonId']; newSeason = JsonConverters.fromJson(json['newSeason'],'Season',context!); cloned = JsonConverters.fromJson(json['cloned'],'List',context!); count = json['count']; preview = json['preview']; statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'newSeasonId': newSeasonId, 'newSeason': JsonConverters.toJson(newSeason,'Season',context!), 'cloned': JsonConverters.toJson(cloned,'List',context!), 'count': count, 'preview': preview, 'statusCode': statusCode, 'message': message }; getTypeName() => "SeasonRolloverResult"; TypeContext? context = _ctx; } // @Route("/season/{Id}/rollover", "POST") class SeasonRolloverRequest implements IReturn, IConvertible { int? id; int? ownerId; String? newSeasonName; DateTime? newStartUTC; DateTime? newEndUTC; bool? preview; SeasonRolloverRequest({this.id,this.ownerId,this.newSeasonName,this.newStartUTC,this.newEndUTC,this.preview}); SeasonRolloverRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; ownerId = json['ownerId']; newSeasonName = json['newSeasonName']; newStartUTC = JsonConverters.fromJson(json['newStartUTC'],'DateTime',context!); newEndUTC = JsonConverters.fromJson(json['newEndUTC'],'DateTime',context!); preview = json['preview']; return this; } Map toJson() => { 'id': id, 'ownerId': ownerId, 'newSeasonName': newSeasonName, 'newStartUTC': JsonConverters.toJson(newStartUTC,'DateTime',context!), 'newEndUTC': JsonConverters.toJson(newEndUTC,'DateTime',context!), 'preview': preview }; createResponse() => SeasonRolloverResult(); getResponseTypeName() => "SeasonRolloverResult"; getTypeName() => "SeasonRolloverRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'Season': TypeInfo(TypeOf.Class, create:() => Season()), 'SeasonRolloverClonedItem': TypeInfo(TypeOf.Class, create:() => SeasonRolloverClonedItem()), 'SeasonRolloverResult': TypeInfo(TypeOf.Class, create:() => SeasonRolloverResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SeasonRolloverRequest': TypeInfo(TypeOf.Class, create:() => SeasonRolloverRequest()), });