POST | /IntentionsUpdate/ |
---|
import 'package:servicestack/servicestack.dart';
class Response implements IConvertible
{
String? Code;
String? Message;
Response({this.Code,this.Message});
Response.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Code = json['Code'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'Code': Code,
'Message': Message
};
getTypeName() => "Response";
TypeContext? context = _ctx;
}
class IntentionsUpdateResponse implements IConvertible
{
Response? ResponseStatus;
IntentionsUpdateResponse({this.ResponseStatus});
IntentionsUpdateResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'Response',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'Response',context!)
};
getTypeName() => "IntentionsUpdateResponse";
TypeContext? context = _ctx;
}
class IntentionsUpdateRequest implements IConvertible
{
String? ContractNumber;
String? Intention;
String? IntentionsSource;
DateTime? IntentionsDateTime;
IntentionsUpdateRequest({this.ContractNumber,this.Intention,this.IntentionsSource,this.IntentionsDateTime});
IntentionsUpdateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ContractNumber = json['ContractNumber'];
Intention = json['Intention'];
IntentionsSource = json['IntentionsSource'];
IntentionsDateTime = JsonConverters.fromJson(json['IntentionsDateTime'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ContractNumber': ContractNumber,
'Intention': Intention,
'IntentionsSource': IntentionsSource,
'IntentionsDateTime': JsonConverters.toJson(IntentionsDateTime,'DateTime',context!)
};
getTypeName() => "IntentionsUpdateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'Response': TypeInfo(TypeOf.Class, create:() => Response()),
'IntentionsUpdateResponse': TypeInfo(TypeOf.Class, create:() => IntentionsUpdateResponse()),
'IntentionsUpdateRequest': TypeInfo(TypeOf.Class, create:() => IntentionsUpdateRequest()),
});
Dart IntentionsUpdateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /IntentionsUpdate/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ContractNumber":"String","Intention":"String","IntentionsSource":"String","IntentionsDateTime":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ResponseStatus":{"Code":"String","Message":"String"}}