/* Options: Date: 2026-06-27 20:27:26 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: PmSetMaterialUnitRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PmActionResponse implements IConvertible { bool? Success; String? Message; int? NewId; ResponseStatus? ResponseStatus; PmActionResponse({this.Success,this.Message,this.NewId,this.ResponseStatus}); PmActionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Success = json['Success']; Message = json['Message']; NewId = json['NewId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Success': Success, 'Message': Message, 'NewId': NewId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "PmActionResponse"; TypeContext? context = _ctx; } // @Route("/v1/pm/material/unit", "POST,OPTIONS") class PmSetMaterialUnitRequest implements IReturn, IConvertible, IPost { int? MaterialID; String? Unit; PmSetMaterialUnitRequest({this.MaterialID,this.Unit}); PmSetMaterialUnitRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MaterialID = json['MaterialID']; Unit = json['Unit']; return this; } Map toJson() => { 'MaterialID': MaterialID, 'Unit': Unit }; createResponse() => PmActionResponse(); getResponseTypeName() => "PmActionResponse"; getTypeName() => "PmSetMaterialUnitRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PmActionResponse': TypeInfo(TypeOf.Class, create:() => PmActionResponse()), 'PmSetMaterialUnitRequest': TypeInfo(TypeOf.Class, create:() => PmSetMaterialUnitRequest()), });