| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET,POST,PUT,DELETE,OPTIONS | /v1/NotificationHeader/{NotificationHeaderId} | ||
|---|---|---|---|
| GET,POST,PUT,DELETE,OPTIONS | /v1/NotificationHeader |
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class NotificationHeader implements IConvertible
{
int? NotificationHeaderId;
String? Subject;
String? Status;
bool? NeedsCloseApproval;
bool? IsDeleted;
int? CreatedBy;
DateTime? DateCreated;
NotificationHeader({this.NotificationHeaderId,this.Subject,this.Status,this.NeedsCloseApproval,this.IsDeleted,this.CreatedBy,this.DateCreated});
NotificationHeader.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
NotificationHeaderId = json['NotificationHeaderId'];
Subject = json['Subject'];
Status = json['Status'];
NeedsCloseApproval = json['NeedsCloseApproval'];
IsDeleted = json['IsDeleted'];
CreatedBy = json['CreatedBy'];
DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'NotificationHeaderId': NotificationHeaderId,
'Subject': Subject,
'Status': Status,
'NeedsCloseApproval': NeedsCloseApproval,
'IsDeleted': IsDeleted,
'CreatedBy': CreatedBy,
'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!)
};
getTypeName() => "NotificationHeader";
TypeContext? context = _ctx;
}
class NotificationHeaderResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<NotificationHeader>? NotificationHeader = [];
NotificationHeaderResponse({this.ResponseStatus,this.NotificationHeader});
NotificationHeaderResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
NotificationHeader = JsonConverters.fromJson(json['NotificationHeader'],'List<NotificationHeader>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'NotificationHeader': JsonConverters.toJson(NotificationHeader,'List<NotificationHeader>',context!)
};
getTypeName() => "NotificationHeaderResponse";
TypeContext? context = _ctx;
}
class NotificationHeaderRequest implements IConvertible
{
List<NotificationHeader>? NotificationHeader = [];
NotificationHeaderRequest({this.NotificationHeader});
NotificationHeaderRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
NotificationHeader = JsonConverters.fromJson(json['NotificationHeader'],'List<NotificationHeader>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'NotificationHeader': JsonConverters.toJson(NotificationHeader,'List<NotificationHeader>',context!)
};
getTypeName() => "NotificationHeaderRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'NotificationHeader': TypeInfo(TypeOf.Class, create:() => NotificationHeader()),
'NotificationHeaderResponse': TypeInfo(TypeOf.Class, create:() => NotificationHeaderResponse()),
'List<NotificationHeader>': TypeInfo(TypeOf.Class, create:() => <NotificationHeader>[]),
'NotificationHeaderRequest': TypeInfo(TypeOf.Class, create:() => NotificationHeaderRequest()),
});
Dart NotificationHeaderRequest 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.
POST /v1/NotificationHeader/{NotificationHeaderId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"NotificationHeader":[{"NotificationHeaderId":0,"Subject":"String","Status":"String","NeedsCloseApproval":false,"IsDeleted":false,"CreatedBy":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}
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"}},"NotificationHeader":[{"NotificationHeaderId":0,"Subject":"String","Status":"String","NeedsCloseApproval":false,"IsDeleted":false,"CreatedBy":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}