/* Options: Date: 2024-12-23 12:10:39 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: SendSmsForVerificationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; enum Locale { EnUs, NbNo, } class SendSmsForVerificationResponse implements IConvertible { String? sentSmsWithTransactiontId; String? smsVerificationRequestToken; SendSmsForVerificationResponse({this.sentSmsWithTransactiontId,this.smsVerificationRequestToken}); SendSmsForVerificationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sentSmsWithTransactiontId = json['sentSmsWithTransactiontId']; smsVerificationRequestToken = json['smsVerificationRequestToken']; return this; } Map toJson() => { 'sentSmsWithTransactiontId': sentSmsWithTransactiontId, 'smsVerificationRequestToken': smsVerificationRequestToken }; getTypeName() => "SendSmsForVerificationResponse"; TypeContext? context = _ctx; } // @Route("/signup/send_sms_for_verification", "POST") class SendSmsForVerificationRequest implements IReturn, IPost, IConvertible { String? phoneNumber; Locale? locale; SendSmsForVerificationRequest({this.phoneNumber,this.locale}); SendSmsForVerificationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { phoneNumber = json['phoneNumber']; locale = JsonConverters.fromJson(json['locale'],'Locale',context!); return this; } Map toJson() => { 'phoneNumber': phoneNumber, 'locale': JsonConverters.toJson(locale,'Locale',context!) }; createResponse() => SendSmsForVerificationResponse(); getResponseTypeName() => "SendSmsForVerificationResponse"; getTypeName() => "SendSmsForVerificationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'Locale': TypeInfo(TypeOf.Enum, enumValues:Locale.values), 'SendSmsForVerificationResponse': TypeInfo(TypeOf.Class, create:() => SendSmsForVerificationResponse()), 'SendSmsForVerificationRequest': TypeInfo(TypeOf.Class, create:() => SendSmsForVerificationRequest()), });