/* Options: Date: 2026-08-27 08:00:29 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://dev-api-booster.richemont.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetUserResponse implements IConvertible { /** * Unique Identifier of a User */ // @ApiMember(Description="Unique Identifier of a User", IsRequired=true) String userId = ""; /** * User's Email address */ // @ApiMember(Description="User's Email address", IsRequired=true) String emailAddress = ""; /** * First Name */ // @ApiMember(Description="First Name", IsRequired=true) String firstName = ""; /** * Last Name */ // @ApiMember(Description="Last Name", IsRequired=true) String lastName = ""; /** * User's Password Expiration Date */ // @ApiMember(Description="User's Password Expiration Date") String? passwordExpirationDate; /** * If the User must change the password */ // @ApiMember(Description="If the User must change the password", IsRequired=true) bool? passwordMustBeChanged; /** * User Type of the User */ // @ApiMember(Description="User Type of the User", IsRequired=true) String userType = ""; /** * Culture ID of the User */ // @ApiMember(Description="Culture ID of the User", IsRequired=true) String culture = ""; /** * If the User account is locked */ // @ApiMember(Description="If the User account is locked", IsRequired=true) bool? accountLocked; GetUserResponse({this.userId="",this.emailAddress="",this.firstName="",this.lastName="",this.passwordExpirationDate,this.passwordMustBeChanged,this.userType="",this.culture="",this.accountLocked}); GetUserResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId'] ?? ""; emailAddress = json['emailAddress'] ?? ""; firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; passwordExpirationDate = json['passwordExpirationDate']; passwordMustBeChanged = json['passwordMustBeChanged']; userType = json['userType'] ?? ""; culture = json['culture'] ?? ""; accountLocked = json['accountLocked']; return this; } Map toJson() => { 'userId': userId, 'emailAddress': emailAddress, 'firstName': firstName, 'lastName': lastName, 'passwordExpirationDate': passwordExpirationDate, 'passwordMustBeChanged': passwordMustBeChanged, 'userType': userType, 'culture': culture, 'accountLocked': accountLocked }; getTypeName() => "GetUserResponse"; TypeContext? context = _ctx; } // @Route("/users/{userId}", "GET") class GetUser implements IReturn, IConvertible, IGet { /** * User's UserID */ // @ApiMember(Description="User's UserID", IsRequired=true) String userId = ""; GetUser({this.userId=""}); GetUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId'] ?? ""; return this; } Map toJson() => { 'userId': userId }; createResponse() => GetUserResponse(); getResponseTypeName() => "GetUserResponse"; getTypeName() => "GetUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'dev_api_booster.richemont.com', types: { 'GetUserResponse': TypeInfo(TypeOf.Class, create:() => GetUserResponse()), 'GetUser': TypeInfo(TypeOf.Class, create:() => GetUser()), });