/* Options: Date: 2024-11-21 14:28:06 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CompanyCoordinatesQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CompanyCoordinatesQueryResponse implements IConvertible { double? Longitude; double? Latitude; CompanyCoordinatesQueryResponse({this.Longitude,this.Latitude}); CompanyCoordinatesQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Longitude = JsonConverters.toDouble(json['Longitude']); Latitude = JsonConverters.toDouble(json['Latitude']); return this; } Map toJson() => { 'Longitude': Longitude, 'Latitude': Latitude }; getTypeName() => "CompanyCoordinatesQueryResponse"; TypeContext? context = _ctx; } // @Route("/companies/coordinates", "GET") class CompanyCoordinatesQuery implements IReturn, IConvertible, IGet { /** * Street address */ // @ApiMember(Description="Street address", IsRequired=true, ParameterType="query") String? Street1; /** * Street adress */ // @ApiMember(Description="Street adress", ParameterType="query") String? Street2; /** * Street zip code */ // @ApiMember(Description="Street zip code", IsRequired=true, ParameterType="query") String? ZipCode; /** * City */ // @ApiMember(Description="City", IsRequired=true, ParameterType="query") String? City; /** * Country Id (Example SE= Sweden) */ // @ApiMember(Description="Country Id (Example SE= Sweden)", IsRequired=true, ParameterType="query") String? CountryId; CompanyCoordinatesQuery({this.Street1,this.Street2,this.ZipCode,this.City,this.CountryId}); CompanyCoordinatesQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Street1 = json['Street1']; Street2 = json['Street2']; ZipCode = json['ZipCode']; City = json['City']; CountryId = json['CountryId']; return this; } Map toJson() => { 'Street1': Street1, 'Street2': Street2, 'ZipCode': ZipCode, 'City': City, 'CountryId': CountryId }; createResponse() => CompanyCoordinatesQueryResponse(); getResponseTypeName() => "CompanyCoordinatesQueryResponse"; getTypeName() => "CompanyCoordinatesQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'CompanyCoordinatesQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyCoordinatesQueryResponse()), 'CompanyCoordinatesQuery': TypeInfo(TypeOf.Class, create:() => CompanyCoordinatesQuery()), });