/* Options: Date: 2025-05-06 14:59:46 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: LocationCreateRequest.* //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 LocationResult implements IConvertible { Location? item; int? statusCode; String? message; LocationResult({this.item,this.statusCode,this.message}); LocationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'Location',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'Location',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "LocationResult"; TypeContext? context = _ctx; } // @Route("/Location", "POST") class LocationCreateRequest implements IReturn, IConvertible { Location? item; LocationCreateRequest({this.item}); LocationCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { item = JsonConverters.fromJson(json['item'],'Location',context!); return this; } Map toJson() => { 'item': JsonConverters.toJson(item,'Location',context!) }; createResponse() => LocationResult(); getResponseTypeName() => "LocationResult"; getTypeName() => "LocationCreateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: { 'Location': TypeInfo(TypeOf.Class, create:() => Location()), 'LocationResult': TypeInfo(TypeOf.Class, create:() => LocationResult()), 'LocationCreateRequest': TypeInfo(TypeOf.Class, create:() => LocationCreateRequest()), });