/* Options: Date: 2026-10-01 12:31:17 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: SeasonListRequest.* //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 SeasonWithCardTypes implements IConvertible { Season? season; List? ownerCardTypeIds; SeasonWithCardTypes({this.season,this.ownerCardTypeIds}); SeasonWithCardTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { season = JsonConverters.fromJson(json['season'],'Season',context!); ownerCardTypeIds = JsonConverters.fromJson(json['ownerCardTypeIds'],'List',context!); return this; } Map toJson() => { 'season': JsonConverters.toJson(season,'Season',context!), 'ownerCardTypeIds': JsonConverters.toJson(ownerCardTypeIds,'List',context!) }; getTypeName() => "SeasonWithCardTypes"; TypeContext? context = _ctx; } class SeasonListResult implements IConvertible { List? items; int? statusCode; String? message; SeasonListResult({this.items,this.statusCode,this.message}); SeasonListResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { items = JsonConverters.fromJson(json['items'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'items': JsonConverters.toJson(items,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "SeasonListResult"; TypeContext? context = _ctx; } // @Route("/seasons/{OwnerId}", "GET") class SeasonListRequest implements IReturn, IConvertible { int? ownerId; bool? includeInactive; SeasonListRequest({this.ownerId,this.includeInactive}); SeasonListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ownerId = json['ownerId']; includeInactive = json['includeInactive']; return this; } Map toJson() => { 'ownerId': ownerId, 'includeInactive': includeInactive }; createResponse() => SeasonListResult(); getResponseTypeName() => "SeasonListResult"; getTypeName() => "SeasonListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'Season': TypeInfo(TypeOf.Class, create:() => Season()), 'SeasonWithCardTypes': TypeInfo(TypeOf.Class, create:() => SeasonWithCardTypes()), 'SeasonListResult': TypeInfo(TypeOf.Class, create:() => SeasonListResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SeasonListRequest': TypeInfo(TypeOf.Class, create:() => SeasonListRequest()), });