Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /EventOwnerTicketTypeToCardConnection |
---|
import 'package:servicestack/servicestack.dart';
class EventOwnerTicketTypeToCardConnection implements IConvertible
{
int? id;
int? ownerCardTypeId;
int? ownerTicketTypeId;
bool? active;
EventOwnerTicketTypeToCardConnection({this.id,this.ownerCardTypeId,this.ownerTicketTypeId,this.active});
EventOwnerTicketTypeToCardConnection.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
ownerCardTypeId = json['ownerCardTypeId'];
ownerTicketTypeId = json['ownerTicketTypeId'];
active = json['active'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'ownerCardTypeId': ownerCardTypeId,
'ownerTicketTypeId': ownerTicketTypeId,
'active': active
};
getTypeName() => "EventOwnerTicketTypeToCardConnection";
TypeContext? context = _ctx;
}
class EventOwnerTicketTypeToCardConnectionResult implements IConvertible
{
EventOwnerTicketTypeToCardConnection? item;
int? statusCode;
String? message;
EventOwnerTicketTypeToCardConnectionResult({this.item,this.statusCode,this.message});
EventOwnerTicketTypeToCardConnectionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'EventOwnerTicketTypeToCardConnection',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'EventOwnerTicketTypeToCardConnection',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "EventOwnerTicketTypeToCardConnectionResult";
TypeContext? context = _ctx;
}
class EventOwnerTicketTypeToCardConnectionCreateRequest implements IConvertible
{
EventOwnerTicketTypeToCardConnection? item;
EventOwnerTicketTypeToCardConnectionCreateRequest({this.item});
EventOwnerTicketTypeToCardConnectionCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'EventOwnerTicketTypeToCardConnection',context!);
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'EventOwnerTicketTypeToCardConnection',context!)
};
getTypeName() => "EventOwnerTicketTypeToCardConnectionCreateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
'EventOwnerTicketTypeToCardConnection': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnection()),
'EventOwnerTicketTypeToCardConnectionResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnectionResult()),
'EventOwnerTicketTypeToCardConnectionCreateRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnectionCreateRequest()),
});
Dart EventOwnerTicketTypeToCardConnectionCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventOwnerTicketTypeToCardConnection HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerCardTypeId: 0,
ownerTicketTypeId: 0,
active: False
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { item: { id: 0, ownerCardTypeId: 0, ownerTicketTypeId: 0, active: False }, statusCode: 0, message: String }