| POST,PUT,DELETE,OPTIONS | /v1/Project/UpdateProjectCost/ |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ProjectUpdateCostResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
bool? Success;
ProjectUpdateCostResponse({this.ResponseStatus,this.Success});
ProjectUpdateCostResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Success = json['Success'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Success': Success
};
getTypeName() => "ProjectUpdateCostResponse";
TypeContext? context = _ctx;
}
class ProjectUpdateCostRequest implements IConvertible
{
String? EditType;
int? ID;
double? Rate;
double? BilledRate;
double? MarkupPercentage;
bool? SameMarkupApplyToAll;
ProjectUpdateCostRequest({this.EditType,this.ID,this.Rate,this.BilledRate,this.MarkupPercentage,this.SameMarkupApplyToAll});
ProjectUpdateCostRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EditType = json['EditType'];
ID = json['ID'];
Rate = JsonConverters.toDouble(json['Rate']);
BilledRate = JsonConverters.toDouble(json['BilledRate']);
MarkupPercentage = JsonConverters.toDouble(json['MarkupPercentage']);
SameMarkupApplyToAll = json['SameMarkupApplyToAll'];
return this;
}
Map<String, dynamic> toJson() => {
'EditType': EditType,
'ID': ID,
'Rate': Rate,
'BilledRate': BilledRate,
'MarkupPercentage': MarkupPercentage,
'SameMarkupApplyToAll': SameMarkupApplyToAll
};
getTypeName() => "ProjectUpdateCostRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ProjectUpdateCostResponse': TypeInfo(TypeOf.Class, create:() => ProjectUpdateCostResponse()),
'ProjectUpdateCostRequest': TypeInfo(TypeOf.Class, create:() => ProjectUpdateCostRequest()),
});
Dart ProjectUpdateCostRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Project/UpdateProjectCost/ HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"EditType":"String","ID":0,"Rate":0,"BilledRate":0,"MarkupPercentage":0,"SameMarkupApplyToAll":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Success":false}