| GET | /Buying-Terms/Get-Buying-Terms-For-Enquiry-And-Entity |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetBuyingTermsForEnquiryAndEntity implements IConvertible
{
int? EnquiryId;
int? EntityContactId;
GetBuyingTermsForEnquiryAndEntity({this.EnquiryId,this.EntityContactId});
GetBuyingTermsForEnquiryAndEntity.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EnquiryId = json['EnquiryId'];
EntityContactId = json['EntityContactId'];
return this;
}
Map<String, dynamic> toJson() => {
'EnquiryId': EnquiryId,
'EntityContactId': EntityContactId
};
getTypeName() => "GetBuyingTermsForEnquiryAndEntity";
TypeContext? context = _ctx;
}
class GetBuyingTermsForEnquiryAndEntityViewModel implements IConvertible
{
List<String>? Information;
GetBuyingTermsForEnquiryAndEntityViewModel({this.Information});
GetBuyingTermsForEnquiryAndEntityViewModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Information = JsonConverters.fromJson(json['Information'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Information': JsonConverters.toJson(Information,'List<String>',context!)
};
getTypeName() => "GetBuyingTermsForEnquiryAndEntityViewModel";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
'GetBuyingTermsForEnquiryAndEntity': TypeInfo(TypeOf.Class, create:() => GetBuyingTermsForEnquiryAndEntity()),
'GetBuyingTermsForEnquiryAndEntityViewModel': TypeInfo(TypeOf.Class, create:() => GetBuyingTermsForEnquiryAndEntityViewModel()),
});
Dart GetBuyingTermsForEnquiryAndEntity 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.
GET /Buying-Terms/Get-Buying-Terms-For-Enquiry-And-Entity HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Information":["String"]}