/* Options: Date: 2025-12-06 07:08:04 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: Clients.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ClientObject implements IConvertible { String? Id; String? Name; String? Address1; String? Address2; String? City; String? State; String? Zip; String? SubscriptionId; bool? Active; DateTime? EntDate; DateTime? ModDate; ClientObject({this.Id,this.Name,this.Address1,this.Address2,this.City,this.State,this.Zip,this.SubscriptionId,this.Active,this.EntDate,this.ModDate}); ClientObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; Zip = json['Zip']; SubscriptionId = json['SubscriptionId']; Active = json['Active']; EntDate = JsonConverters.fromJson(json['EntDate'],'DateTime',context!); ModDate = JsonConverters.fromJson(json['ModDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'Zip': Zip, 'SubscriptionId': SubscriptionId, 'Active': Active, 'EntDate': JsonConverters.toJson(EntDate,'DateTime',context!), 'ModDate': JsonConverters.toJson(ModDate,'DateTime',context!) }; getTypeName() => "ClientObject"; TypeContext? context = _ctx; } class ClientsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Clients = []; ClientsResponse({this.ResponseStatus,this.Clients}); ClientsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Clients = JsonConverters.fromJson(json['Clients'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Clients': JsonConverters.toJson(Clients,'List',context!) }; getTypeName() => "ClientsResponse"; TypeContext? context = _ctx; } // @Route("/v1/Clients", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Clients/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class Clients extends ClientObject implements IReturn, IConvertible, IPost { String? ApiKey; Clients({this.ApiKey}); Clients.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey }); createResponse() => ClientsResponse(); getResponseTypeName() => "ClientsResponse"; getTypeName() => "Clients"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ClientObject': TypeInfo(TypeOf.Class, create:() => ClientObject()), 'ClientsResponse': TypeInfo(TypeOf.Class, create:() => ClientsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Clients': TypeInfo(TypeOf.Class, create:() => Clients()), });