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