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