| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| GET | /ownerCardType/popularity/{OwnerId} |
|---|
import 'package:servicestack/servicestack.dart';
class OwnerCardTypePopularityItem implements IConvertible
{
int? ownerCardTypeId;
String? name;
int? activeHolders;
OwnerCardTypePopularityItem({this.ownerCardTypeId,this.name,this.activeHolders});
OwnerCardTypePopularityItem.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ownerCardTypeId = json['ownerCardTypeId'];
name = json['name'];
activeHolders = json['activeHolders'];
return this;
}
Map<String, dynamic> toJson() => {
'ownerCardTypeId': ownerCardTypeId,
'name': name,
'activeHolders': activeHolders
};
getTypeName() => "OwnerCardTypePopularityItem";
TypeContext? context = _ctx;
}
class OwnerCardTypePopularityResult implements IConvertible
{
int? statusCode;
String? message;
List<OwnerCardTypePopularityItem>? items;
OwnerCardTypePopularityResult({this.statusCode,this.message,this.items});
OwnerCardTypePopularityResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
statusCode = json['statusCode'];
message = json['message'];
items = JsonConverters.fromJson(json['items'],'List<OwnerCardTypePopularityItem>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'statusCode': statusCode,
'message': message,
'items': JsonConverters.toJson(items,'List<OwnerCardTypePopularityItem>',context!)
};
getTypeName() => "OwnerCardTypePopularityResult";
TypeContext? context = _ctx;
}
class OwnerCardTypePopularityRequest implements IConvertible
{
int? ownerId;
OwnerCardTypePopularityRequest({this.ownerId});
OwnerCardTypePopularityRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ownerId = json['ownerId'];
return this;
}
Map<String, dynamic> toJson() => {
'ownerId': ownerId
};
getTypeName() => "OwnerCardTypePopularityRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'OwnerCardTypePopularityItem': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityItem()),
'OwnerCardTypePopularityResult': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityResult()),
'List<OwnerCardTypePopularityItem>': TypeInfo(TypeOf.Class, create:() => <OwnerCardTypePopularityItem>[]),
'OwnerCardTypePopularityRequest': TypeInfo(TypeOf.Class, create:() => OwnerCardTypePopularityRequest()),
});
Dart OwnerCardTypePopularityRequest 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.
GET /ownerCardType/popularity/{OwnerId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"statusCode":0,"message":"String","items":[{"ownerCardTypeId":0,"name":"String","activeHolders":0}]}