| GET | /{Workspace}/MessageUser/{UserId} |
|---|
import 'package:servicestack/servicestack.dart';
class MessageUser implements IConvertible
{
String? ObjectId;
String? Workspace;
String? UserId;
String? ApplicationId;
String? DisplayName;
String? ImageUrl;
MessageUser({this.ObjectId,this.Workspace,this.UserId,this.ApplicationId,this.DisplayName,this.ImageUrl});
MessageUser.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ObjectId = json['ObjectId'];
Workspace = json['Workspace'];
UserId = json['UserId'];
ApplicationId = json['ApplicationId'];
DisplayName = json['DisplayName'];
ImageUrl = json['ImageUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'ObjectId': ObjectId,
'Workspace': Workspace,
'UserId': UserId,
'ApplicationId': ApplicationId,
'DisplayName': DisplayName,
'ImageUrl': ImageUrl
};
getTypeName() => "MessageUser";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'MessageUser': TypeInfo(TypeOf.Class, create:() => MessageUser()),
});
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.
GET /{Workspace}/MessageUser/{UserId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: application/xml