| Requires any of the roles: | Worker, Agent, Administrator |
| GET | /v1/ContactStatus |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ContactStatus implements IConvertible
{
int? ContactStatusId;
String? Description;
ContactStatus({this.ContactStatusId,this.Description});
ContactStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ContactStatusId = json['ContactStatusId'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'ContactStatusId': ContactStatusId,
'Description': Description
};
getTypeName() => "ContactStatus";
TypeContext? context = _ctx;
}
class ContactStatusResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<ContactStatus>? ContactStatus = [];
ContactStatusResponse({this.ResponseStatus,this.ContactStatus});
ContactStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
ContactStatus = JsonConverters.fromJson(json['ContactStatus'],'List<ContactStatus>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'ContactStatus': JsonConverters.toJson(ContactStatus,'List<ContactStatus>',context!)
};
getTypeName() => "ContactStatusResponse";
TypeContext? context = _ctx;
}
class ContactStatusRequest implements IConvertible
{
ContactStatusRequest();
ContactStatusRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "ContactStatusRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ContactStatus': TypeInfo(TypeOf.Class, create:() => ContactStatus()),
'ContactStatusResponse': TypeInfo(TypeOf.Class, create:() => ContactStatusResponse()),
'List<ContactStatus>': TypeInfo(TypeOf.Class, create:() => <ContactStatus>[]),
'ContactStatusRequest': TypeInfo(TypeOf.Class, create:() => ContactStatusRequest()),
});
Dart ContactStatusRequest 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.
GET /v1/ContactStatus HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
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"}},"ContactStatus":[{"ContactStatusId":0,"Description":"String"}]}