/* Options: Date: 2025-12-06 08:51:21 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Messages.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class MessageObject implements IConvertible { String? Id; String? Message; MessageObject({this.Id,this.Message}); MessageObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Message = json['Message']; return this; } Map toJson() => { 'Id': Id, 'Message': Message }; getTypeName() => "MessageObject"; TypeContext? context = _ctx; } class MessagesResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Messages = []; MessagesResponse({this.ResponseStatus,this.Messages}); MessagesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Messages = JsonConverters.fromJson(json['Messages'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Messages': JsonConverters.toJson(Messages,'List',context!) }; getTypeName() => "MessagesResponse"; TypeContext? context = _ctx; } // @Route("/v1/Messages", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Messages/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class Messages extends MessageObject implements IReturn, IConvertible, IPost { String? ApiKey; Messages({this.ApiKey}); Messages.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey }); createResponse() => MessagesResponse(); getResponseTypeName() => "MessagesResponse"; getTypeName() => "Messages"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'MessageObject': TypeInfo(TypeOf.Class, create:() => MessageObject()), 'MessagesResponse': TypeInfo(TypeOf.Class, create:() => MessagesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Messages': TypeInfo(TypeOf.Class, create:() => Messages()), });