| GET,OPTIONS | /v1/projects/{ProjectID}/funding-source |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class FundingSourceResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
int? ProjectID;
String? FundingSource;
bool? FloorRequired;
bool? MissingDetermination;
FundingSourceResponse({this.ResponseStatus,this.ProjectID,this.FundingSource,this.FloorRequired,this.MissingDetermination});
FundingSourceResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
ProjectID = json['ProjectID'];
FundingSource = json['FundingSource'];
FloorRequired = json['FloorRequired'];
MissingDetermination = json['MissingDetermination'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'ProjectID': ProjectID,
'FundingSource': FundingSource,
'FloorRequired': FloorRequired,
'MissingDetermination': MissingDetermination
};
getTypeName() => "FundingSourceResponse";
TypeContext? context = _ctx;
}
class FundingSourceRequest implements IConvertible
{
int? ProjectID;
FundingSourceRequest({this.ProjectID});
FundingSourceRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ProjectID = json['ProjectID'];
return this;
}
Map<String, dynamic> toJson() => {
'ProjectID': ProjectID
};
getTypeName() => "FundingSourceRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'FundingSourceResponse': TypeInfo(TypeOf.Class, create:() => FundingSourceResponse()),
'FundingSourceRequest': TypeInfo(TypeOf.Class, create:() => FundingSourceRequest()),
});
Dart FundingSourceRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/projects/{ProjectID}/funding-source HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectID":0,"FundingSource":"String","FloorRequired":false,"MissingDetermination":false}