/* Options: Date: 2024-11-21 23:03:58 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sharpscript.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EvalExpression.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class EvalExpressionResponse implements IConvertible { dynamic? result; String? tree; ResponseStatus? responseStatus; EvalExpressionResponse({this.result,this.tree,this.responseStatus}); EvalExpressionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { result = JsonConverters.fromJson(json['result'],'dynamic',context!); tree = json['tree']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'result': JsonConverters.toJson(result,'dynamic',context!), 'tree': tree, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "EvalExpressionResponse"; TypeContext? context = _ctx; } // @Route("/expression/eval") class EvalExpression implements IReturn, IConvertible, IPost { String? expression; EvalExpression({this.expression}); EvalExpression.fromJson(Map json) { fromMap(json); } fromMap(Map json) { expression = json['expression']; return this; } Map toJson() => { 'expression': expression }; createResponse() => EvalExpressionResponse(); getResponseTypeName() => "EvalExpressionResponse"; getTypeName() => "EvalExpression"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sharpscript.net', types: { 'EvalExpressionResponse': TypeInfo(TypeOf.Class, create:() => EvalExpressionResponse()), 'EvalExpression': TypeInfo(TypeOf.Class, create:() => EvalExpression()), });