/* Options: Date: 2025-01-08 03:19:11 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateUserProfile.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AppUser extends IdentityUser implements IConvertible { String? firstName; String? lastName; String? displayName; String? profileUrl; String? avatar; String? handle; int? refId; String? refIdStr; bool? isArchived; DateTime? archivedDate; String? lastLoginIp; DateTime? lastLoginDate; DateTime? createdDate; DateTime? modifiedDate; AppUser({this.firstName,this.lastName,this.displayName,this.profileUrl,this.avatar,this.handle,this.refId,this.refIdStr,this.isArchived,this.archivedDate,this.lastLoginIp,this.lastLoginDate,this.createdDate,this.modifiedDate}); AppUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); firstName = json['firstName']; lastName = json['lastName']; displayName = json['displayName']; profileUrl = json['profileUrl']; avatar = json['avatar']; handle = json['handle']; refId = json['refId']; refIdStr = json['refIdStr']; isArchived = json['isArchived']; archivedDate = JsonConverters.fromJson(json['archivedDate'],'DateTime',context!); lastLoginIp = json['lastLoginIp']; lastLoginDate = JsonConverters.fromJson(json['lastLoginDate'],'DateTime',context!); createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); modifiedDate = JsonConverters.fromJson(json['modifiedDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'firstName': firstName, 'lastName': lastName, 'displayName': displayName, 'profileUrl': profileUrl, 'avatar': avatar, 'handle': handle, 'refId': refId, 'refIdStr': refIdStr, 'isArchived': isArchived, 'archivedDate': JsonConverters.toJson(archivedDate,'DateTime',context!), 'lastLoginIp': lastLoginIp, 'lastLoginDate': JsonConverters.toJson(lastLoginDate,'DateTime',context!), 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!), 'modifiedDate': JsonConverters.toJson(modifiedDate,'DateTime',context!) }); getTypeName() => "AppUser"; TypeContext? context = _ctx; } class UserProfile implements IConvertible { String? displayName; String? avatar; String? handle; UserProfile({this.displayName,this.avatar,this.handle}); UserProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; avatar = json['avatar']; handle = json['handle']; return this; } Map toJson() => { 'displayName': displayName, 'avatar': avatar, 'handle': handle }; getTypeName() => "UserProfile"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class UpdateUserProfile implements IReturn, IUpdateDb, IConvertible, IPut { // @Validate(Validator="NotEmpty") String? displayName; String? avatar; // @Validate(Validator="MaximumLength(20)") String? handle; UpdateUserProfile({this.displayName,this.avatar,this.handle}); UpdateUserProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; avatar = json['avatar']; handle = json['handle']; return this; } Map toJson() => { 'displayName': displayName, 'avatar': avatar, 'handle': handle }; createResponse() => UserProfile(); getResponseTypeName() => "UserProfile"; getTypeName() => "UpdateUserProfile"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'AppUser': TypeInfo(TypeOf.Class, create:() => AppUser()), 'UserProfile': TypeInfo(TypeOf.Class, create:() => UserProfile()), 'UpdateUserProfile': TypeInfo(TypeOf.Class, create:() => UpdateUserProfile()), });