/* Options: Date: 2024-12-23 11:46:42 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetRecentLocationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum RecentLocationType { Home, Current, Pin, Named, } class RecentLocationDto implements IConvertible { String? name; String? description; double? latitude; double? longitude; RecentLocationType? locationType; List? googleAddressComponents; RecentLocationDto({this.name,this.description,this.latitude,this.longitude,this.locationType,this.googleAddressComponents}); RecentLocationDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; description = json['description']; latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); locationType = JsonConverters.fromJson(json['locationType'],'RecentLocationType',context!); googleAddressComponents = JsonConverters.fromJson(json['googleAddressComponents'],'List',context!); return this; } Map toJson() => { 'name': name, 'description': description, 'latitude': latitude, 'longitude': longitude, 'locationType': JsonConverters.toJson(locationType,'RecentLocationType',context!), 'googleAddressComponents': JsonConverters.toJson(googleAddressComponents,'List',context!) }; getTypeName() => "RecentLocationDto"; TypeContext? context = _ctx; } class GetRecentLocationResponse implements IConvertible { List? recentLocations; GetRecentLocationResponse({this.recentLocations}); GetRecentLocationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { recentLocations = JsonConverters.fromJson(json['recentLocations'],'List',context!); return this; } Map toJson() => { 'recentLocations': JsonConverters.toJson(recentLocations,'List',context!) }; getTypeName() => "GetRecentLocationResponse"; TypeContext? context = _ctx; } // @Route("/location/GetRecentLocation", "GET") class GetRecentLocationRequest implements IReturn, IGet, IConvertible { GetRecentLocationRequest(); GetRecentLocationRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetRecentLocationResponse(); getResponseTypeName() => "GetRecentLocationResponse"; getTypeName() => "GetRecentLocationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'RecentLocationType': TypeInfo(TypeOf.Enum, enumValues:RecentLocationType.values), 'RecentLocationDto': TypeInfo(TypeOf.Class, create:() => RecentLocationDto()), 'GetRecentLocationResponse': TypeInfo(TypeOf.Class, create:() => GetRecentLocationResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRecentLocationRequest': TypeInfo(TypeOf.Class, create:() => GetRecentLocationRequest()), });