/* Options: Date: 2024-12-22 22:01:07 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueryLevel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Level implements IConvertible { String? id; Uint8List? data = []; Level({this.id,this.data}); Level.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; data = JsonConverters.fromJson(json['data'],'Uint8List',context!); return this; } Map toJson() => { 'id': id, 'data': JsonConverters.toJson(data,'Uint8List',context!) }; getTypeName() => "Level"; TypeContext? context = _ctx; } class QueryLevel extends QueryDb implements IReturn>, IConvertible, IGet { String? id; QueryLevel({this.id}); QueryLevel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryLevel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Level': TypeInfo(TypeOf.Class, create:() => Level()), 'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryLevel': TypeInfo(TypeOf.Class, create:() => QueryLevel()), 'List': TypeInfo(TypeOf.Class, create:() => []), });