/* Options: Date: 2025-01-08 03:21:25 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazordiffusion.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QuerySignups.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum SignupType { Updates, Beta, } class StatBase implements IConvertible { String? refId; int? appUserId; String? rawUrl; String? remoteIp; DateTime? createdDate; StatBase({this.refId,this.appUserId,this.rawUrl,this.remoteIp,this.createdDate}); StatBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { refId = json['refId']; appUserId = json['appUserId']; rawUrl = json['rawUrl']; remoteIp = json['remoteIp']; createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!); return this; } Map toJson() => { 'refId': refId, 'appUserId': appUserId, 'rawUrl': rawUrl, 'remoteIp': remoteIp, 'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!) }; getTypeName() => "StatBase"; TypeContext? context = _ctx; } class Signup extends StatBase implements IConvertible { int? id; SignupType? type; String? email; String? name; DateTime? cancelledDate; Signup({this.id,this.type,this.email,this.name,this.cancelledDate}); Signup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; type = JsonConverters.fromJson(json['type'],'SignupType',context!); email = json['email']; name = json['name']; cancelledDate = JsonConverters.fromJson(json['cancelledDate'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'type': JsonConverters.toJson(type,'SignupType',context!), 'email': email, 'name': name, 'cancelledDate': JsonConverters.toJson(cancelledDate,'DateTime',context!) }); getTypeName() => "Signup"; TypeContext? context = _ctx; } // @ValidateRequest(Validator="HasRole(`Moderator`)") class QuerySignups extends QueryDb implements IReturn>, IConvertible, IGet { QuerySignups(); QuerySignups.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QuerySignups"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'SignupType': TypeInfo(TypeOf.Enum, enumValues:SignupType.values), 'StatBase': TypeInfo(TypeOf.Class, create:() => StatBase()), 'Signup': TypeInfo(TypeOf.Class, create:() => Signup()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QuerySignups': TypeInfo(TypeOf.Class, create:() => QuerySignups()), 'List': TypeInfo(TypeOf.Class, create:() => []), });