/* Options: Date: 2025-05-06 16:44:03 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: EventsWithLocationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Status implements IConvertible { int? statusCode; String? statusMessage; String? statusDetails; Status({this.statusCode,this.statusMessage,this.statusDetails}); Status.fromJson(Map json) { fromMap(json); } fromMap(Map json) { statusCode = json['statusCode']; statusMessage = json['statusMessage']; statusDetails = json['statusDetails']; return this; } Map toJson() => { 'statusCode': statusCode, 'statusMessage': statusMessage, 'statusDetails': statusDetails }; getTypeName() => "Status"; TypeContext? context = _ctx; } class EventWithLocation implements IConvertible { int? id; String? name; String? description; DateTime? timeOfEvent; bool? eventActive; bool? eventSeriesActive; String? eventLocationName; double? latitude; double? longitude; String? addressName; String? addressLine; String? zip; String? city; String? countryCode; bool? postPonedNoDate; DateTime? endOfEvent; EventWithLocation({this.id,this.name,this.description,this.timeOfEvent,this.eventActive,this.eventSeriesActive,this.eventLocationName,this.latitude,this.longitude,this.addressName,this.addressLine,this.zip,this.city,this.countryCode,this.postPonedNoDate,this.endOfEvent}); EventWithLocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; timeOfEvent = JsonConverters.fromJson(json['timeOfEvent'],'DateTime',context!); eventActive = json['eventActive']; eventSeriesActive = json['eventSeriesActive']; eventLocationName = json['eventLocationName']; latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); addressName = json['addressName']; addressLine = json['addressLine']; zip = json['zip']; city = json['city']; countryCode = json['countryCode']; postPonedNoDate = json['postPonedNoDate']; endOfEvent = JsonConverters.fromJson(json['endOfEvent'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'timeOfEvent': JsonConverters.toJson(timeOfEvent,'DateTime',context!), 'eventActive': eventActive, 'eventSeriesActive': eventSeriesActive, 'eventLocationName': eventLocationName, 'latitude': latitude, 'longitude': longitude, 'addressName': addressName, 'addressLine': addressLine, 'zip': zip, 'city': city, 'countryCode': countryCode, 'postPonedNoDate': postPonedNoDate, 'endOfEvent': JsonConverters.toJson(endOfEvent,'DateTime',context!) }; getTypeName() => "EventWithLocation"; TypeContext? context = _ctx; } class EventsWithLocationResult implements IConvertible { Status? status; List? data; EventsWithLocationResult({this.status,this.data}); EventsWithLocationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = JsonConverters.fromJson(json['status'],'Status',context!); data = JsonConverters.fromJson(json['data'],'List',context!); return this; } Map toJson() => { 'status': JsonConverters.toJson(status,'Status',context!), 'data': JsonConverters.toJson(data,'List',context!) }; getTypeName() => "EventsWithLocationResult"; TypeContext? context = _ctx; } // @Route("/EventsWithLocation", "GET") // @Route("/EventsWithLocation/MaxDays/{MaxDays}", "POST/GET") class EventsWithLocationRequest implements IReturn, IConvertible { int? maxDays; EventsWithLocationRequest({this.maxDays}); EventsWithLocationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { maxDays = json['maxDays']; return this; } Map toJson() => { 'maxDays': maxDays }; createResponse() => EventsWithLocationResult(); getResponseTypeName() => "EventsWithLocationResult"; getTypeName() => "EventsWithLocationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'Status': TypeInfo(TypeOf.Class, create:() => Status()), 'EventWithLocation': TypeInfo(TypeOf.Class, create:() => EventWithLocation()), 'EventsWithLocationResult': TypeInfo(TypeOf.Class, create:() => EventsWithLocationResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EventsWithLocationRequest': TypeInfo(TypeOf.Class, create:() => EventsWithLocationRequest()), });