/* Options: Date: 2024-05-16 00:40:59 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: QueryRockstarAuditSubOr.* //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; } class QueryRockstarAuditSubOr extends QueryDb2 implements IReturn>, IConvertible, IGet { String? firstNameStartsWith; int? ageOlderThan; QueryRockstarAuditSubOr({this.firstNameStartsWith,this.ageOlderThan}); QueryRockstarAuditSubOr.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); firstNameStartsWith = json['firstNameStartsWith']; ageOlderThan = json['ageOlderThan']; return this; } Map toJson() => super.toJson()..addAll({ 'firstNameStartsWith': firstNameStartsWith, 'ageOlderThan': ageOlderThan }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryRockstarAuditSubOr"; 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()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryRockstarAuditSubOr': TypeInfo(TypeOf.Class, create:() => QueryRockstarAuditSubOr()), 'List': TypeInfo(TypeOf.Class, create:() => []), });