/* Options: Date: 2025-05-12 21:27:03 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SoftDeleteAuditTenant.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; enum LivingStatus { Alive, Dead, } class RockstarAuditTenant extends AuditBase implements IConvertible { int? tenantId; int? id; String? firstName; String? lastName; int? age; DateTime? dateOfBirth; DateTime? dateDied; LivingStatus? livingStatus; RockstarAuditTenant({this.tenantId,this.id,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']; id = json['id']; firstName = json['firstName']; lastName = json['lastName']; age = json['age']; dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!); 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!); 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; RockstarAuto({this.id}); RockstarAuto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); getTypeName() => "RockstarAuto"; TypeContext? context = _ctx; } abstract class SoftDeleteAuditBase implements IUpdateDb { SoftDeleteAuditBase(); SoftDeleteAuditBase.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "SoftDeleteAuditBase<$Table,$TResponse>"; TypeContext? context = _ctx; } abstract class SoftDeleteAuditTenantBase extends SoftDeleteAuditBase { SoftDeleteAuditTenantBase(); SoftDeleteAuditTenantBase.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "SoftDeleteAuditTenantBase<$Table,$TResponse>"; TypeContext? context = _ctx; } class RockstarWithIdAndResultResponse implements IConvertible { int? id; RockstarAuto? result; ResponseStatus? responseStatus; RockstarWithIdAndResultResponse({this.id,this.result,this.responseStatus}); RockstarWithIdAndResultResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; 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 SoftDeleteAuditTenant extends SoftDeleteAuditTenantBase implements IReturn, IConvertible, IPut { int? id; SoftDeleteAuditTenant({this.id}); SoftDeleteAuditTenant.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => RockstarWithIdAndResultResponse(); getResponseTypeName() => "RockstarWithIdAndResultResponse"; getTypeName() => "SoftDeleteAuditTenant"; 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()), 'SoftDeleteAuditBase': TypeInfo(TypeOf.AbstractClass), 'SoftDeleteAuditTenantBase': TypeInfo(TypeOf.AbstractClass), 'RockstarWithIdAndResultResponse': TypeInfo(TypeOf.Class, create:() => RockstarWithIdAndResultResponse()), 'SoftDeleteAuditTenant': TypeInfo(TypeOf.Class, create:() => SoftDeleteAuditTenant()), });