/* Options: Date: 2024-05-13 22:48:35 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateRockstarAuditTenant.* //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 UpdateAuditBase implements IUpdateDb { UpdateAuditBase(); UpdateAuditBase.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "UpdateAuditBase<$Table,$TResponse>"; TypeContext? context = _ctx; } abstract class UpdateAuditTenantBase extends UpdateAuditBase { UpdateAuditTenantBase(); UpdateAuditTenantBase.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "UpdateAuditTenantBase<$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 UpdateRockstarAuditTenant extends UpdateAuditTenantBase implements IReturn, IHasSessionId, IConvertible, IPut { String? sessionId; int? id; String? firstName; LivingStatus? livingStatus; UpdateRockstarAuditTenant({this.sessionId,this.id,this.firstName,this.livingStatus}); UpdateRockstarAuditTenant.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); sessionId = json['sessionId']; id = json['id']; 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() => "UpdateRockstarAuditTenant"; 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()), 'UpdateAuditBase': TypeInfo(TypeOf.AbstractClass), 'UpdateAuditTenantBase': TypeInfo(TypeOf.AbstractClass), 'RockstarWithIdAndResultResponse': TypeInfo(TypeOf.Class, create:() => RockstarWithIdAndResultResponse()), 'UpdateRockstarAuditTenant': TypeInfo(TypeOf.Class, create:() => UpdateRockstarAuditTenant()), });