/* Options: Date: 2024-05-14 10:44:49 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EchoTypes.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; // @Route("/echo/types") class EchoTypes implements IReturn, IConvertible, IPost { int? byte; int? short; int? Int; int? long; int? uShort; int? uInt; int? uLong; double? float; double? Double; double? decimal; String? string; DateTime? dateTime; Duration? timeSpan; DateTime? dateTimeOffset; String? guid; String? char; EchoTypes({this.byte,this.short,this.Int,this.long,this.uShort,this.uInt,this.uLong,this.float,this.Double,this.decimal,this.string,this.dateTime,this.timeSpan,this.dateTimeOffset,this.guid,this.char}); EchoTypes.fromJson(Map json) { fromMap(json); } fromMap(Map json) { byte = json['byte']; short = json['short']; Int = json['int']; long = json['long']; uShort = json['uShort']; uInt = json['uInt']; uLong = json['uLong']; float = JsonConverters.toDouble(json['float']); Double = JsonConverters.toDouble(json['double']); decimal = JsonConverters.toDouble(json['decimal']); string = json['string']; dateTime = JsonConverters.fromJson(json['dateTime'],'DateTime',context!); timeSpan = JsonConverters.fromJson(json['timeSpan'],'Duration',context!); dateTimeOffset = JsonConverters.fromJson(json['dateTimeOffset'],'DateTime',context!); guid = json['guid']; char = json['char']; return this; } Map toJson() => { 'byte': byte, 'short': short, 'int': Int, 'long': long, 'uShort': uShort, 'uInt': uInt, 'uLong': uLong, 'float': float, 'double': Double, 'decimal': decimal, 'string': string, 'dateTime': JsonConverters.toJson(dateTime,'DateTime',context!), 'timeSpan': JsonConverters.toJson(timeSpan,'Duration',context!), 'dateTimeOffset': JsonConverters.toJson(dateTimeOffset,'DateTime',context!), 'guid': guid, 'char': char }; createResponse() => EchoTypes(); getResponseTypeName() => "EchoTypes"; getTypeName() => "EchoTypes"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'EchoTypes': TypeInfo(TypeOf.Class, create:() => EchoTypes()), });