/* Options: Date: 2025-05-06 16:21:59 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: EventsSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Event implements IConvertible { int? id; String? name; String? description; String? externalReference; DateTime? timeOfEvent; int? eventLocationId; int? eventSeriesId; int? eventOwnerId; bool? eventActive; String? defaultValues; String? externalReferenceType; bool? postponedNoDate; String? awayTeamExternalId; String? sportGenderId; bool? saleIsActive; String? seatingImageUrl; int? venueId; int? awayTeamOwnerId; String? detailedDescription; String? imageUrl; String? directAccessCode; String? imageUrl2; bool? hideEvent; bool? ownerCardsNotAllowed; DateTime? endOfEvent; DateTime? endOfEventUTC; String? timeZone; DateTime? timeOfEventUTC; Event({this.id,this.name,this.description,this.externalReference,this.timeOfEvent,this.eventLocationId,this.eventSeriesId,this.eventOwnerId,this.eventActive,this.defaultValues,this.externalReferenceType,this.postponedNoDate,this.awayTeamExternalId,this.sportGenderId,this.saleIsActive,this.seatingImageUrl,this.venueId,this.awayTeamOwnerId,this.detailedDescription,this.imageUrl,this.directAccessCode,this.imageUrl2,this.hideEvent,this.ownerCardsNotAllowed,this.endOfEvent,this.endOfEventUTC,this.timeZone,this.timeOfEventUTC}); Event.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; externalReference = json['externalReference']; timeOfEvent = JsonConverters.fromJson(json['timeOfEvent'],'DateTime',context!); eventLocationId = json['eventLocationId']; eventSeriesId = json['eventSeriesId']; eventOwnerId = json['eventOwnerId']; eventActive = json['eventActive']; defaultValues = json['defaultValues']; externalReferenceType = json['externalReferenceType']; postponedNoDate = json['postponedNoDate']; awayTeamExternalId = json['awayTeamExternalId']; sportGenderId = json['sportGenderId']; saleIsActive = json['saleIsActive']; seatingImageUrl = json['seatingImageUrl']; venueId = json['venueId']; awayTeamOwnerId = json['awayTeamOwnerId']; detailedDescription = json['detailedDescription']; imageUrl = json['imageUrl']; directAccessCode = json['directAccessCode']; imageUrl2 = json['imageUrl2']; hideEvent = json['hideEvent']; ownerCardsNotAllowed = json['ownerCardsNotAllowed']; endOfEvent = JsonConverters.fromJson(json['endOfEvent'],'DateTime',context!); endOfEventUTC = JsonConverters.fromJson(json['endOfEventUTC'],'DateTime',context!); timeZone = json['timeZone']; timeOfEventUTC = JsonConverters.fromJson(json['timeOfEventUTC'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'externalReference': externalReference, 'timeOfEvent': JsonConverters.toJson(timeOfEvent,'DateTime',context!), 'eventLocationId': eventLocationId, 'eventSeriesId': eventSeriesId, 'eventOwnerId': eventOwnerId, 'eventActive': eventActive, 'defaultValues': defaultValues, 'externalReferenceType': externalReferenceType, 'postponedNoDate': postponedNoDate, 'awayTeamExternalId': awayTeamExternalId, 'sportGenderId': sportGenderId, 'saleIsActive': saleIsActive, 'seatingImageUrl': seatingImageUrl, 'venueId': venueId, 'awayTeamOwnerId': awayTeamOwnerId, 'detailedDescription': detailedDescription, 'imageUrl': imageUrl, 'directAccessCode': directAccessCode, 'imageUrl2': imageUrl2, 'hideEvent': hideEvent, 'ownerCardsNotAllowed': ownerCardsNotAllowed, 'endOfEvent': JsonConverters.toJson(endOfEvent,'DateTime',context!), 'endOfEventUTC': JsonConverters.toJson(endOfEventUTC,'DateTime',context!), 'timeZone': timeZone, 'timeOfEventUTC': JsonConverters.toJson(timeOfEventUTC,'DateTime',context!) }; getTypeName() => "Event"; TypeContext? context = _ctx; } class EventsResult implements IConvertible { List? items; int? statusCode; String? message; EventsResult({this.items,this.statusCode,this.message}); EventsResult.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() => "EventsResult"; TypeContext? context = _ctx; } // @Route("/Event/Search", "POST") class EventsSearchRequest implements IReturn, IConvertible { String? name; String? externalID; String? externalIdType; EventsSearchRequest({this.name,this.externalID,this.externalIdType}); EventsSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; externalID = json['externalID']; externalIdType = json['externalIdType']; return this; } Map toJson() => { 'name': name, 'externalID': externalID, 'externalIdType': externalIdType }; createResponse() => EventsResult(); getResponseTypeName() => "EventsResult"; getTypeName() => "EventsSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'Event': TypeInfo(TypeOf.Class, create:() => Event()), 'EventsResult': TypeInfo(TypeOf.Class, create:() => EventsResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EventsSearchRequest': TypeInfo(TypeOf.Class, create:() => EventsSearchRequest()), });