/* Options: Date: 2025-05-04 23:11:42 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateUserInfo.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AppUserInfo implements IConvertible { /** * The user's first name */ // @ApiMember(Description="The user's first name") String? firstName; /** * The user's last name */ // @ApiMember(Description="The user's last name") String? lastName; /** * Shortcut to the user's full name */ // @ApiMember(Description="Shortcut to the user's full name") String? name; /** * The URL to the user's avatar */ // @ApiMember(Description="The URL to the user's avatar") String? avatarUrl; AppUserInfo({this.firstName,this.lastName,this.name,this.avatarUrl}); AppUserInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; name = json['name']; avatarUrl = json['avatarUrl']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'name': name, 'avatarUrl': avatarUrl }; getTypeName() => "AppUserInfo"; TypeContext? context = _ctx; } /** * Updates the user's info */ // @Route("/app/user-info", "PATCH") // @Api(Description="Updates the user's info") class UpdateUserInfo implements IReturn, IPatch, IConvertible { /** * The new first name */ // @ApiMember(Description="The new first name") String? firstName; /** * The new last name */ // @ApiMember(Description="The new last name") String? lastName; UpdateUserInfo({this.firstName,this.lastName}); UpdateUserInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName }; createResponse() => AppUserInfo(); getResponseTypeName() => "AppUserInfo"; getTypeName() => "UpdateUserInfo"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'AppUserInfo': TypeInfo(TypeOf.Class, create:() => AppUserInfo()), 'UpdateUserInfo': TypeInfo(TypeOf.Class, create:() => UpdateUserInfo()), });