/* Options: Date: 2026-09-02 15:51:31 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PatchRockstarAuditTenant.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum LivingStatus { Alive, Dead, } class RockstarAuditTenant extends AuditBase implements IConvertible { int tenantId = 0; int id = 0; String firstName = ""; String lastName = ""; int? age; DateTime? dateOfBirth; DateTime? dateDied; LivingStatus? livingStatus; RockstarAuditTenant({this.tenantId=0,this.id=0,this.firstName="",this.lastName="",this.age,this.dateOfBirth,this.dateDied,this.livingStatus}); RockstarAuditTenant.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); tenantId = json['tenantId'] ?? 0; id = json['id'] ?? 0; firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; age = json['age']; dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!) ?? DateTime(0); dateDied = JsonConverters.fromJson(json['dateDied'],'DateTime',context!); livingStatus = JsonConverters.fromJson(json['livingStatus'],'LivingStatus',context!); return this; } Map toJson() => super.toJson()..addAll({ 'tenantId': tenantId, 'id': id, 'firstName': firstName, 'lastName': lastName, 'age': age, 'dateOfBirth': JsonConverters.toJson(dateOfBirth,'DateTime',context!), 'dateDied': JsonConverters.toJson(dateDied,'DateTime',context!), 'livingStatus': JsonConverters.toJson(livingStatus,'LivingStatus',context!) }); getTypeName() => "RockstarAuditTenant"; TypeContext? context = _ctx; } abstract class RockstarBase { String firstName = ""; String lastName = ""; int? age; DateTime? dateOfBirth; DateTime? dateDied; LivingStatus? livingStatus; RockstarBase({this.firstName="",this.lastName="",this.age,this.dateOfBirth,this.dateDied,this.livingStatus}); RockstarBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; age = json['age']; dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!) ?? DateTime(0); dateDied = JsonConverters.fromJson(json['dateDied'],'DateTime',context!); livingStatus = JsonConverters.fromJson(json['livingStatus'],'LivingStatus',context!); return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'age': age, 'dateOfBirth': JsonConverters.toJson(dateOfBirth,'DateTime',context!), 'dateDied': JsonConverters.toJson(dateDied,'DateTime',context!), 'livingStatus': JsonConverters.toJson(livingStatus,'LivingStatus',context!) }; getTypeName() => "RockstarBase"; TypeContext? context = _ctx; } class RockstarAuto extends RockstarBase implements IConvertible { int id = 0; RockstarAuto({this.id=0}); RockstarAuto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id'] ?? 0; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); getTypeName() => "RockstarAuto"; TypeContext? context = _ctx; } abstract class PatchAuditBase implements IPatchDb { PatchAuditBase(); PatchAuditBase.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PatchAuditBase<$Table,$TResponse>"; TypeContext? context = _ctx; } abstract class PatchAuditTenantBase extends PatchAuditBase { PatchAuditTenantBase(); PatchAuditTenantBase.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "PatchAuditTenantBase<$Table,$TResponse>"; TypeContext? context = _ctx; } class RockstarWithIdAndResultResponse implements IConvertible { int id = 0; RockstarAuto? result; ResponseStatus? responseStatus; RockstarWithIdAndResultResponse({this.id=0,this.result,this.responseStatus}); RockstarWithIdAndResultResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id'] ?? 0; result = JsonConverters.fromJson(json['result'],'RockstarAuto',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'result': JsonConverters.toJson(result,'RockstarAuto',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "RockstarWithIdAndResultResponse"; TypeContext? context = _ctx; } class PatchRockstarAuditTenant extends PatchAuditTenantBase implements IReturn, IHasSessionId, IConvertible, IPatch { String sessionId = ""; int id = 0; String firstName = ""; LivingStatus? livingStatus; PatchRockstarAuditTenant({this.sessionId="",this.id=0,this.firstName="",this.livingStatus}); PatchRockstarAuditTenant.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); sessionId = json['sessionId'] ?? ""; id = json['id'] ?? 0; firstName = json['firstName'] ?? ""; livingStatus = JsonConverters.fromJson(json['livingStatus'],'LivingStatus',context!); return this; } Map toJson() => super.toJson()..addAll({ 'sessionId': sessionId, 'id': id, 'firstName': firstName, 'livingStatus': JsonConverters.toJson(livingStatus,'LivingStatus',context!) }); createResponse() => RockstarWithIdAndResultResponse(); getResponseTypeName() => "RockstarWithIdAndResultResponse"; getTypeName() => "PatchRockstarAuditTenant"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'LivingStatus': TypeInfo(TypeOf.Enum, enumValues:LivingStatus.values), 'RockstarAuditTenant': TypeInfo(TypeOf.Class, create:() => RockstarAuditTenant()), 'RockstarBase': TypeInfo(TypeOf.AbstractClass), 'RockstarAuto': TypeInfo(TypeOf.Class, create:() => RockstarAuto()), 'PatchAuditBase': TypeInfo(TypeOf.GenericDef,create:() => PatchAuditBase()), 'PatchAuditTenantBase': TypeInfo(TypeOf.GenericDef,create:() => PatchAuditTenantBase()), 'RockstarWithIdAndResultResponse': TypeInfo(TypeOf.Class, create:() => RockstarWithIdAndResultResponse()), 'PatchRockstarAuditTenant': TypeInfo(TypeOf.Class, create:() => PatchRockstarAuditTenant()), });