/* 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: LocationsSearchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Location implements IConvertible { int? id; String? name; double? latitude; double? longitude; String? addressName; String? addressLine; String? zip; String? city; String? county; String? stateCode; String? stateName; String? countryCode; String? countryName; String? timeZone; Location({this.id,this.name,this.latitude,this.longitude,this.addressName,this.addressLine,this.zip,this.city,this.county,this.stateCode,this.stateName,this.countryCode,this.countryName,this.timeZone}); Location.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); addressName = json['addressName']; addressLine = json['addressLine']; zip = json['zip']; city = json['city']; county = json['county']; stateCode = json['stateCode']; stateName = json['stateName']; countryCode = json['countryCode']; countryName = json['countryName']; timeZone = json['timeZone']; return this; } Map toJson() => { 'id': id, 'name': name, 'latitude': latitude, 'longitude': longitude, 'addressName': addressName, 'addressLine': addressLine, 'zip': zip, 'city': city, 'county': county, 'stateCode': stateCode, 'stateName': stateName, 'countryCode': countryCode, 'countryName': countryName, 'timeZone': timeZone }; getTypeName() => "Location"; TypeContext? context = _ctx; } class LocationsResult implements IConvertible { List? items; int? statusCode; String? message; LocationsResult({this.items,this.statusCode,this.message}); LocationsResult.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() => "LocationsResult"; TypeContext? context = _ctx; } // @Route("/Locations", "POST") class LocationsSearchRequest implements IReturn, IConvertible { String? name; String? countryCode; LocationsSearchRequest({this.name,this.countryCode}); LocationsSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; countryCode = json['countryCode']; return this; } Map toJson() => { 'name': name, 'countryCode': countryCode }; createResponse() => LocationsResult(); getResponseTypeName() => "LocationsResult"; getTypeName() => "LocationsSearchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'Location': TypeInfo(TypeOf.Class, create:() => Location()), 'LocationsResult': TypeInfo(TypeOf.Class, create:() => LocationsResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LocationsSearchRequest': TypeInfo(TypeOf.Class, create:() => LocationsSearchRequest()), });