POST | /powens/accounts/disable |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class PowensDisableAccountReq implements IConvertible
{
int? accountId;
String? state;
PowensDisableAccountReq({this.accountId,this.state});
PowensDisableAccountReq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
accountId = json['accountId'];
state = json['state'];
return this;
}
Map<String, dynamic> toJson() => {
'accountId': accountId,
'state': state
};
getTypeName() => "PowensDisableAccountReq";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: <String, TypeInfo> {
'PowensDisableAccountReq': TypeInfo(TypeOf.Class, create:() => PowensDisableAccountReq()),
});
Dart PowensDisableAccountReq DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /powens/accounts/disable HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"accountId":0,"state":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length (HttpWebResponse)