/* Options: Date: 2024-12-22 21:38:36 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteJobApplicationComment.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class JobApplicationComment extends AuditBase implements IConvertible { int? id; // @References(typeof(AppUser)) String? appUserId; AppUser? appUser; // @References(typeof(JobApplication)) int? jobApplicationId; String? comment; JobApplicationComment({this.id,this.appUserId,this.appUser,this.jobApplicationId,this.comment}); JobApplicationComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; appUserId = json['appUserId']; appUser = JsonConverters.fromJson(json['appUser'],'AppUser',context!); jobApplicationId = json['jobApplicationId']; comment = json['comment']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'appUserId': appUserId, 'appUser': JsonConverters.toJson(appUser,'AppUser',context!), 'jobApplicationId': jobApplicationId, 'comment': comment }); getTypeName() => "JobApplicationComment"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="IsAuthenticated") class DeleteJobApplicationComment implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteJobApplicationComment({this.id}); DeleteJobApplicationComment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteJobApplicationComment"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'JobApplicationComment': TypeInfo(TypeOf.Class, create:() => JobApplicationComment()), 'AppUser': TypeInfo(TypeOf.Class, create:() => AppUser()), 'DeleteJobApplicationComment': TypeInfo(TypeOf.Class, create:() => DeleteJobApplicationComment()), });