| GET | /ivr/status |
|---|
import 'package:servicestack/servicestack.dart';
class IvrStatusResponse extends IvrStatusResponse implements IHaveErrorField, IConvertible
{
String? Status;
String? Message;
// @ApiMember(ExcludeInSchema=true)
bool? IsError;
IvrStatusResponse({this.Status,this.Message,this.IsError});
IvrStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Status = json['Status'];
Message = json['Message'];
IsError = json['IsError'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Status': Status,
'Message': Message,
'IsError': IsError
});
getTypeName() => "IvrStatusResponse";
TypeContext? context = _ctx;
}
class IvrStatusRequest extends IvrStatusRequest implements IConvertible
{
IvrStatusRequest();
IvrStatusRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "IvrStatusRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'IvrStatusResponse': TypeInfo(TypeOf.Class, create:() => IvrStatusResponse()),
'IvrStatusRequest': TypeInfo(TypeOf.Class, create:() => IvrStatusRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /ivr/status HTTP/1.1 Host: devapi.billhighway.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Status":"String","Message":"String","IsError":false}