/* Options: Date: 2024-05-14 08:06:13 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: StoreLogs.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class Channel implements IConvertible { String? name; String? value; Channel({this.name,this.value}); Channel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; value = json['value']; return this; } Map toJson() => { 'name': name, 'value': value }; getTypeName() => "Channel"; TypeContext? context = _ctx; } class Device implements IConvertible { int? id; String? type; int? timeStamp; List? channels; Device({this.id,this.type,this.timeStamp,this.channels}); Device.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; type = json['type']; timeStamp = json['timeStamp']; channels = JsonConverters.fromJson(json['channels'],'List',context!); return this; } Map toJson() => { 'id': id, 'type': type, 'timeStamp': timeStamp, 'channels': JsonConverters.toJson(channels,'List',context!) }; getTypeName() => "Device"; TypeContext? context = _ctx; } class Logger implements IConvertible { int? id; List? devices; Logger({this.id,this.devices}); Logger.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; devices = JsonConverters.fromJson(json['devices'],'List',context!); return this; } Map toJson() => { 'id': id, 'devices': JsonConverters.toJson(devices,'List',context!) }; getTypeName() => "Logger"; TypeContext? context = _ctx; } class StoreLogsResponse implements IConvertible { List? existingLogs; ResponseStatus? responseStatus; StoreLogsResponse({this.existingLogs,this.responseStatus}); StoreLogsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { existingLogs = JsonConverters.fromJson(json['existingLogs'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'existingLogs': JsonConverters.toJson(existingLogs,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "StoreLogsResponse"; TypeContext? context = _ctx; } class StoreLogs implements IReturn, IConvertible, IPost { List? loggers; StoreLogs({this.loggers}); StoreLogs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { loggers = JsonConverters.fromJson(json['loggers'],'List',context!); return this; } Map toJson() => { 'loggers': JsonConverters.toJson(loggers,'List',context!) }; createResponse() => StoreLogsResponse(); getResponseTypeName() => "StoreLogsResponse"; getTypeName() => "StoreLogs"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'Channel': TypeInfo(TypeOf.Class, create:() => Channel()), 'Device': TypeInfo(TypeOf.Class, create:() => Device()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Logger': TypeInfo(TypeOf.Class, create:() => Logger()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StoreLogsResponse': TypeInfo(TypeOf.Class, create:() => StoreLogsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StoreLogs': TypeInfo(TypeOf.Class, create:() => StoreLogs()), });