/* Options: Date: 2025-12-06 05:26:41 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: ContactCategoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ContactCategory implements IConvertible { int? Id; String? Name; ContactCategory({this.Id,this.Name}); ContactCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "ContactCategory"; TypeContext? context = _ctx; } class ContactCategoryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? ContactCategories = []; ContactCategoryResponse({this.ResponseStatus,this.ContactCategories}); ContactCategoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ContactCategories = JsonConverters.fromJson(json['ContactCategories'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ContactCategories': JsonConverters.toJson(ContactCategories,'List',context!) }; getTypeName() => "ContactCategoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/ContactCategory/", "GET,PUT,OPTIONS") class ContactCategoryRequest implements IReturn, IConvertible, IGet { String? ContactGUID; int? CategoryId; ContactCategoryRequest({this.ContactGUID,this.CategoryId}); ContactCategoryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactGUID = json['ContactGUID']; CategoryId = json['CategoryId']; return this; } Map toJson() => { 'ContactGUID': ContactGUID, 'CategoryId': CategoryId }; createResponse() => ContactCategoryResponse(); getResponseTypeName() => "ContactCategoryResponse"; getTypeName() => "ContactCategoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ContactCategory': TypeInfo(TypeOf.Class, create:() => ContactCategory()), 'ContactCategoryResponse': TypeInfo(TypeOf.Class, create:() => ContactCategoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContactCategoryRequest': TypeInfo(TypeOf.Class, create:() => ContactCategoryRequest()), });