/* Options: Date: 2024-12-23 11:44:40 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: ProfileUpdateLanguageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum Locale { EnUs, NbNo, } class ProfileUpdateLanguageResponse implements IConvertible { Locale? locale; ProfileUpdateLanguageResponse({this.locale}); ProfileUpdateLanguageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { locale = JsonConverters.fromJson(json['locale'],'Locale',context!); return this; } Map toJson() => { 'locale': JsonConverters.toJson(locale,'Locale',context!) }; getTypeName() => "ProfileUpdateLanguageResponse"; TypeContext? context = _ctx; } // @Route("/profile/language", "PUT") class ProfileUpdateLanguageRequest implements IReturn, IPut, IConvertible { Locale? locale; ProfileUpdateLanguageRequest({this.locale}); ProfileUpdateLanguageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { locale = JsonConverters.fromJson(json['locale'],'Locale',context!); return this; } Map toJson() => { 'locale': JsonConverters.toJson(locale,'Locale',context!) }; createResponse() => ProfileUpdateLanguageResponse(); getResponseTypeName() => "ProfileUpdateLanguageResponse"; getTypeName() => "ProfileUpdateLanguageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'Locale': TypeInfo(TypeOf.Enum, enumValues:Locale.values), 'ProfileUpdateLanguageResponse': TypeInfo(TypeOf.Class, create:() => ProfileUpdateLanguageResponse()), 'ProfileUpdateLanguageRequest': TypeInfo(TypeOf.Class, create:() => ProfileUpdateLanguageRequest()), });