/* Options: Date: 2025-12-06 06:47:55 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: NotificationMethods.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NotificationMethodObject implements IConvertible { String? Id; String? Name; NotificationMethodObject({this.Id,this.Name}); NotificationMethodObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "NotificationMethodObject"; TypeContext? context = _ctx; } class NotificationMethodsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? NotificationMethods = []; NotificationMethodsResponse({this.ResponseStatus,this.NotificationMethods}); NotificationMethodsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); NotificationMethods = JsonConverters.fromJson(json['NotificationMethods'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'NotificationMethods': JsonConverters.toJson(NotificationMethods,'List',context!) }; getTypeName() => "NotificationMethodsResponse"; TypeContext? context = _ctx; } // @Route("/v1/NotificationMethods", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/NotificationMethods/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class NotificationMethods extends NotificationMethodObject implements IReturn, IConvertible, IPost { String? ApiKey; NotificationMethods({this.ApiKey}); NotificationMethods.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey }); createResponse() => NotificationMethodsResponse(); getResponseTypeName() => "NotificationMethodsResponse"; getTypeName() => "NotificationMethods"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NotificationMethodObject': TypeInfo(TypeOf.Class, create:() => NotificationMethodObject()), 'NotificationMethodsResponse': TypeInfo(TypeOf.Class, create:() => NotificationMethodsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NotificationMethods': TypeInfo(TypeOf.Class, create:() => NotificationMethods()), });