/* Options: Date: 2025-01-08 03:20:06 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: CreateSignup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum SignupType { Updates, Beta, } 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; } class CreateSignup implements IReturn, ICreateDb, IConvertible, IPost { SignupType? type; // @Validate(Validator="NotEmpty") // @Validate(Validator="Email") String? email; String? name; CreateSignup({this.type,this.email,this.name}); CreateSignup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = JsonConverters.fromJson(json['type'],'SignupType',context!); email = json['email']; name = json['name']; return this; } Map toJson() => { 'type': JsonConverters.toJson(type,'SignupType',context!), 'email': email, 'name': name }; createResponse() => EmptyResponse(); getResponseTypeName() => "EmptyResponse"; getTypeName() => "CreateSignup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazordiffusion.com', types: { 'SignupType': TypeInfo(TypeOf.Enum, enumValues:SignupType.values), 'Signup': TypeInfo(TypeOf.Class, create:() => Signup()), 'CreateSignup': TypeInfo(TypeOf.Class, create:() => CreateSignup()), });