/* Options: Date: 2026-10-01 10:23:04 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: FanSnapshotOwnerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FanSegmentFigure implements IConvertible { String? segment; int? fans; int? orders; int? spendIsk; FanSegmentFigure({this.segment,this.fans,this.orders,this.spendIsk}); FanSegmentFigure.fromJson(Map json) { fromMap(json); } fromMap(Map json) { segment = json['segment']; fans = json['fans']; orders = json['orders']; spendIsk = json['spendIsk']; return this; } Map toJson() => { 'segment': segment, 'fans': fans, 'orders': orders, 'spendIsk': spendIsk }; getTypeName() => "FanSegmentFigure"; TypeContext? context = _ctx; } class FanSnapshotPoint implements IConvertible { String? date; int? New; int? active; int? atRisk; int? dropoff; int? lost; int? neverBought; int? all; FanSnapshotPoint({this.date,this.New,this.active,this.atRisk,this.dropoff,this.lost,this.neverBought,this.all}); FanSnapshotPoint.fromJson(Map json) { fromMap(json); } fromMap(Map json) { date = json['date']; New = json['new']; active = json['active']; atRisk = json['atRisk']; dropoff = json['dropoff']; lost = json['lost']; neverBought = json['neverBought']; all = json['all']; return this; } Map toJson() => { 'date': date, 'new': New, 'active': active, 'atRisk': atRisk, 'dropoff': dropoff, 'lost': lost, 'neverBought': neverBought, 'all': all }; getTypeName() => "FanSnapshotPoint"; TypeContext? context = _ctx; } class FanSnapshotOwnerResult implements IConvertible { int? eventOwnerId; int? clubEventOwnerId; int? definitionVersion; String? asOf; List? current; List? extras; String? compareDate; List? compare; List? compareExtras; List? series; int? statusCode; String? message; FanSnapshotOwnerResult({this.eventOwnerId,this.clubEventOwnerId,this.definitionVersion,this.asOf,this.current,this.extras,this.compareDate,this.compare,this.compareExtras,this.series,this.statusCode,this.message}); FanSnapshotOwnerResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { eventOwnerId = json['eventOwnerId']; clubEventOwnerId = json['clubEventOwnerId']; definitionVersion = json['definitionVersion']; asOf = json['asOf']; current = JsonConverters.fromJson(json['current'],'List',context!); extras = JsonConverters.fromJson(json['extras'],'List',context!); compareDate = json['compareDate']; compare = JsonConverters.fromJson(json['compare'],'List',context!); compareExtras = JsonConverters.fromJson(json['compareExtras'],'List',context!); series = JsonConverters.fromJson(json['series'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'eventOwnerId': eventOwnerId, 'clubEventOwnerId': clubEventOwnerId, 'definitionVersion': definitionVersion, 'asOf': asOf, 'current': JsonConverters.toJson(current,'List',context!), 'extras': JsonConverters.toJson(extras,'List',context!), 'compareDate': compareDate, 'compare': JsonConverters.toJson(compare,'List',context!), 'compareExtras': JsonConverters.toJson(compareExtras,'List',context!), 'series': JsonConverters.toJson(series,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "FanSnapshotOwnerResult"; TypeContext? context = _ctx; } // @Route("/FanSnapshot/Owner", "POST") class FanSnapshotOwnerRequest implements IReturn, IConvertible { int? eventOwnerId; int? days; int? definitionVersion; FanSnapshotOwnerRequest({this.eventOwnerId,this.days,this.definitionVersion}); FanSnapshotOwnerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { eventOwnerId = json['eventOwnerId']; days = json['days']; definitionVersion = json['definitionVersion']; return this; } Map toJson() => { 'eventOwnerId': eventOwnerId, 'days': days, 'definitionVersion': definitionVersion }; createResponse() => FanSnapshotOwnerResult(); getResponseTypeName() => "FanSnapshotOwnerResult"; getTypeName() => "FanSnapshotOwnerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'FanSegmentFigure': TypeInfo(TypeOf.Class, create:() => FanSegmentFigure()), 'FanSnapshotPoint': TypeInfo(TypeOf.Class, create:() => FanSnapshotPoint()), 'FanSnapshotOwnerResult': TypeInfo(TypeOf.Class, create:() => FanSnapshotOwnerResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FanSnapshotOwnerRequest': TypeInfo(TypeOf.Class, create:() => FanSnapshotOwnerRequest()), });