GET | /buy |
---|
import 'package:servicestack/servicestack.dart';
class BuySubscriptionRequest implements IConvertible
{
String? sid;
BuySubscriptionRequest({this.sid});
BuySubscriptionRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
sid = json['sid'];
return this;
}
Map<String, dynamic> toJson() => {
'sid': sid
};
getTypeName() => "BuySubscriptionRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'portal_api.migrantleap.com', types: <String, TypeInfo> {
'BuySubscriptionRequest': TypeInfo(TypeOf.Class, create:() => BuySubscriptionRequest()),
});
Dart BuySubscriptionRequest DTOs
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 /buy HTTP/1.1 Host: portal-api.migrantleap.com Accept: application/xml