/* Options: Date: 2024-12-23 11:34:44 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: ProfileUpdateHomeLocationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class UserAddress implements IConvertible { String? streetName; String? streetNumber; String? postalCode; String? region; String? countryCode; UserAddress({this.streetName,this.streetNumber,this.postalCode,this.region,this.countryCode}); UserAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { streetName = json['streetName']; streetNumber = json['streetNumber']; postalCode = json['postalCode']; region = json['region']; countryCode = json['countryCode']; return this; } Map toJson() => { 'streetName': streetName, 'streetNumber': streetNumber, 'postalCode': postalCode, 'region': region, 'countryCode': countryCode }; getTypeName() => "UserAddress"; TypeContext? context = _ctx; } class HomeLocation implements IConvertible { UserAddress? address; double? latitude; double? longitude; HomeLocation({this.address,this.latitude,this.longitude}); HomeLocation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { address = JsonConverters.fromJson(json['address'],'UserAddress',context!); latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); return this; } Map toJson() => { 'address': JsonConverters.toJson(address,'UserAddress',context!), 'latitude': latitude, 'longitude': longitude }; getTypeName() => "HomeLocation"; TypeContext? context = _ctx; } class ProfileUpdateHomeLocationResponse implements IConvertible { HomeLocation? homeLocation; ProfileUpdateHomeLocationResponse({this.homeLocation}); ProfileUpdateHomeLocationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { homeLocation = JsonConverters.fromJson(json['homeLocation'],'HomeLocation',context!); return this; } Map toJson() => { 'homeLocation': JsonConverters.toJson(homeLocation,'HomeLocation',context!) }; getTypeName() => "ProfileUpdateHomeLocationResponse"; TypeContext? context = _ctx; } // @Route("/profile/update-home", "PUT") class ProfileUpdateHomeLocationRequest implements IReturn, IPut, IConvertible { HomeLocation? home; ProfileUpdateHomeLocationRequest({this.home}); ProfileUpdateHomeLocationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { home = JsonConverters.fromJson(json['home'],'HomeLocation',context!); return this; } Map toJson() => { 'home': JsonConverters.toJson(home,'HomeLocation',context!) }; createResponse() => ProfileUpdateHomeLocationResponse(); getResponseTypeName() => "ProfileUpdateHomeLocationResponse"; getTypeName() => "ProfileUpdateHomeLocationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'UserAddress': TypeInfo(TypeOf.Class, create:() => UserAddress()), 'HomeLocation': TypeInfo(TypeOf.Class, create:() => HomeLocation()), 'ProfileUpdateHomeLocationResponse': TypeInfo(TypeOf.Class, create:() => ProfileUpdateHomeLocationResponse()), 'ProfileUpdateHomeLocationRequest': TypeInfo(TypeOf.Class, create:() => ProfileUpdateHomeLocationRequest()), });