/* Options: Date: 2024-12-23 12:03:53 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: AddRecentLocationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum RecentLocationType { Home, Current, Pin, Named, } class AddRecentLocationResponse implements IConvertible { bool? success; AddRecentLocationResponse({this.success}); AddRecentLocationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; return this; } Map toJson() => { 'success': success }; getTypeName() => "AddRecentLocationResponse"; TypeContext? context = _ctx; } // @Route("/location/AddRecentLocation", "POST") class AddRecentLocationRequest implements IReturn, IPost, IConvertible { String? name; String? description; double? latitude; double? longitude; RecentLocationType? locationType; List? googleAddressComponents; AddRecentLocationRequest({this.name,this.description,this.latitude,this.longitude,this.locationType,this.googleAddressComponents}); AddRecentLocationRequest.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!) }; createResponse() => AddRecentLocationResponse(); getResponseTypeName() => "AddRecentLocationResponse"; getTypeName() => "AddRecentLocationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'RecentLocationType': TypeInfo(TypeOf.Enum, enumValues:RecentLocationType.values), 'AddRecentLocationResponse': TypeInfo(TypeOf.Class, create:() => AddRecentLocationResponse()), 'AddRecentLocationRequest': TypeInfo(TypeOf.Class, create:() => AddRecentLocationRequest()), });