| POST | /{Workspace}/ConversationEvent |
|---|
import 'package:servicestack/servicestack.dart';
class ConversationEvent implements IConvertible
{
String? ObjectId;
String? Workspace;
String? Date;
String? ConversationId;
String? UserId;
String? Text;
String? ThumbnailId;
bool? IsLink;
ConversationEvent({this.ObjectId,this.Workspace,this.Date,this.ConversationId,this.UserId,this.Text,this.ThumbnailId,this.IsLink});
ConversationEvent.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ObjectId = json['ObjectId'];
Workspace = json['Workspace'];
Date = json['Date'];
ConversationId = json['ConversationId'];
UserId = json['UserId'];
Text = json['Text'];
ThumbnailId = json['ThumbnailId'];
IsLink = json['IsLink'];
return this;
}
Map<String, dynamic> toJson() => {
'ObjectId': ObjectId,
'Workspace': Workspace,
'Date': Date,
'ConversationId': ConversationId,
'UserId': UserId,
'Text': Text,
'ThumbnailId': ThumbnailId,
'IsLink': IsLink
};
getTypeName() => "ConversationEvent";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'ConversationEvent': TypeInfo(TypeOf.Class, create:() => ConversationEvent()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/ConversationEvent HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ObjectId: String,
Workspace: String,
Date: String,
ConversationId: String,
UserId: String,
Text: String,
ThumbnailId: String,
IsLink: False
}