/* Options: Date: 2025-12-16 01:16:18 Version: 10.04 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-vue.web-templates.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryUsers.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class User implements IConvertible { String id = ""; String userName = ""; String? firstName; String? lastName; String? displayName; String? profileUrl; User({this.id,this.userName,this.firstName,this.lastName,this.displayName,this.profileUrl}); User.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userName = json['userName']; firstName = json['firstName']; lastName = json['lastName']; displayName = json['displayName']; profileUrl = json['profileUrl']; return this; } Map toJson() => { 'id': id, 'userName': userName, 'firstName': firstName, 'lastName': lastName, 'displayName': displayName, 'profileUrl': profileUrl }; getTypeName() => "User"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAdmin") class QueryUsers extends QueryDb implements IReturn>, IConvertible, IGet { String? id; QueryUsers({this.id}); QueryUsers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryUsers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_vue.web_templates.io', types: { 'User': TypeInfo(TypeOf.Class, create:() => User()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryUsers': TypeInfo(TypeOf.Class, create:() => QueryUsers()), 'List': TypeInfo(TypeOf.Class, create:() => []), });