/* Options: Date: 2024-12-22 12:47:51 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUsersByEmails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UserRef implements IConvertible { int? id; String? userName; String? email; int? refId; String? refSource; String? refUrn; UserRef({this.id,this.userName,this.email,this.refId,this.refSource,this.refUrn}); UserRef.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userName = json['userName']; email = json['email']; refId = json['refId']; refSource = json['refSource']; refUrn = json['refUrn']; return this; } Map toJson() => { 'id': id, 'userName': userName, 'email': email, 'refId': refId, 'refSource': refSource, 'refUrn': refUrn }; getTypeName() => "UserRef"; TypeContext? context = _ctx; } class GetUsersByEmailsResponse implements IConvertible { List? results; ResponseStatus? responseStatus; GetUsersByEmailsResponse({this.results,this.responseStatus}); GetUsersByEmailsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUsersByEmailsResponse"; TypeContext? context = _ctx; } // @Route("/users/by-email") class GetUsersByEmails implements IReturn, IGet, IConvertible { List? emails; GetUsersByEmails({this.emails}); GetUsersByEmails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { emails = JsonConverters.fromJson(json['emails'],'List',context!); return this; } Map toJson() => { 'emails': JsonConverters.toJson(emails,'List',context!) }; createResponse() => GetUsersByEmailsResponse(); getResponseTypeName() => "GetUsersByEmailsResponse"; getTypeName() => "GetUsersByEmails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'UserRef': TypeInfo(TypeOf.Class, create:() => UserRef()), 'GetUsersByEmailsResponse': TypeInfo(TypeOf.Class, create:() => GetUsersByEmailsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUsersByEmails': TypeInfo(TypeOf.Class, create:() => GetUsersByEmails()), });