/* Options: Date: 2024-05-15 14:31:47 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RealDeleteAuditTenant.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; 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; } class RockstarWithIdAndCountResponse implements IConvertible { int? id; int? count; ResponseStatus? responseStatus; RockstarWithIdAndCountResponse({this.id,this.count,this.responseStatus}); RockstarWithIdAndCountResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; count = json['count']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'count': count, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "RockstarWithIdAndCountResponse"; TypeContext? context = _ctx; } class RealDeleteAuditTenant implements IReturn, IDeleteDb, IHasSessionId, IConvertible, IDelete { String? sessionId; int? id; int? age; RealDeleteAuditTenant({this.sessionId,this.id,this.age}); RealDeleteAuditTenant.fromJson(Map json) { fromMap(json); } fromMap(Map json) { sessionId = json['sessionId']; id = json['id']; age = json['age']; return this; } Map toJson() => { 'sessionId': sessionId, 'id': id, 'age': age }; createResponse() => RockstarWithIdAndCountResponse(); getResponseTypeName() => "RockstarWithIdAndCountResponse"; getTypeName() => "RealDeleteAuditTenant"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'RockstarAuditTenant': TypeInfo(TypeOf.Class, create:() => RockstarAuditTenant()), 'LivingStatus': TypeInfo(TypeOf.Class, create:() => LivingStatus()), 'RockstarWithIdAndCountResponse': TypeInfo(TypeOf.Class, create:() => RockstarWithIdAndCountResponse()), 'RealDeleteAuditTenant': TypeInfo(TypeOf.Class, create:() => RealDeleteAuditTenant()), });