| POST,OPTIONS | /v1/routeplan/property |
|---|
import 'package:servicestack/servicestack.dart';
class RoutePlanPropertyCreateResponse implements IConvertible
{
int? AgreementID;
int? ProjectID;
ResponseStatus? ResponseStatus;
RoutePlanPropertyCreateResponse({this.AgreementID,this.ProjectID,this.ResponseStatus});
RoutePlanPropertyCreateResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AgreementID = json['AgreementID'];
ProjectID = json['ProjectID'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'AgreementID': AgreementID,
'ProjectID': ProjectID,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "RoutePlanPropertyCreateResponse";
TypeContext? context = _ctx;
}
class RoutePlanPropertyCreateRequest implements IConvertible
{
String? Name;
String? Acreage;
int? Minutes;
String? Profile;
int? Dow;
List<int>? EquipmentIDs = [];
int? TerritoryID;
RoutePlanPropertyCreateRequest({this.Name,this.Acreage,this.Minutes,this.Profile,this.Dow,this.EquipmentIDs,this.TerritoryID});
RoutePlanPropertyCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
Acreage = json['Acreage'];
Minutes = json['Minutes'];
Profile = json['Profile'];
Dow = json['Dow'];
EquipmentIDs = JsonConverters.fromJson(json['EquipmentIDs'],'List<int>',context!);
TerritoryID = json['TerritoryID'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'Acreage': Acreage,
'Minutes': Minutes,
'Profile': Profile,
'Dow': Dow,
'EquipmentIDs': JsonConverters.toJson(EquipmentIDs,'List<int>',context!),
'TerritoryID': TerritoryID
};
getTypeName() => "RoutePlanPropertyCreateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'RoutePlanPropertyCreateResponse': TypeInfo(TypeOf.Class, create:() => RoutePlanPropertyCreateResponse()),
'RoutePlanPropertyCreateRequest': TypeInfo(TypeOf.Class, create:() => RoutePlanPropertyCreateRequest()),
});
Dart RoutePlanPropertyCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/routeplan/property HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RoutePlanPropertyCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Acreage>String</Acreage>
<Dow>0</Dow>
<EquipmentIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</EquipmentIDs>
<Minutes>0</Minutes>
<Name>String</Name>
<Profile>String</Profile>
<TerritoryID>0</TerritoryID>
</RoutePlanPropertyCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RoutePlanPropertyCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgreementID>0</AgreementID>
<ProjectID>0</ProjectID>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</RoutePlanPropertyCreateResponse>