| GET, POST | /fibuscan/OnlinehandelTreffertypen |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class onlinehandel_treffertypen implements IPrimaryKey, IMandnr, IDel, ITableBase, IConvertible
{
int? id;
String? guid;
int? mandant;
int? del;
int? parent_id;
int? soll_parsen;
String? bezeichnung;
DateTime? _erstellt;
DateTime? _aenderung;
int? suchfeld1;
String? suchfeld1_text;
int? suchfeld2;
String? suchfeld2_text;
// @Ignore()
int? PrimaryKey;
onlinehandel_treffertypen({this.id,this.guid,this.mandant,this.del,this.parent_id,this.soll_parsen,this.bezeichnung,this._erstellt,this._aenderung,this.suchfeld1,this.suchfeld1_text,this.suchfeld2,this.suchfeld2_text,this.PrimaryKey});
onlinehandel_treffertypen.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
guid = json['guid'];
mandant = json['mandant'];
del = json['del'];
parent_id = json['parent_id'];
soll_parsen = json['soll_parsen'];
bezeichnung = json['bezeichnung'];
_erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
_aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
suchfeld1 = json['suchfeld1'];
suchfeld1_text = json['suchfeld1_text'];
suchfeld2 = json['suchfeld2'];
suchfeld2_text = json['suchfeld2_text'];
PrimaryKey = json['PrimaryKey'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'guid': guid,
'mandant': mandant,
'del': del,
'parent_id': parent_id,
'soll_parsen': soll_parsen,
'bezeichnung': bezeichnung,
'_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
'_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
'suchfeld1': suchfeld1,
'suchfeld1_text': suchfeld1_text,
'suchfeld2': suchfeld2,
'suchfeld2_text': suchfeld2_text,
'PrimaryKey': PrimaryKey
};
getTypeName() => "onlinehandel_treffertypen";
TypeContext? context = _ctx;
}
class OnlinehandelTreffertypenResponse implements IConvertible
{
List<onlinehandel_treffertypen>? Liste;
OnlinehandelTreffertypenResponse({this.Liste});
OnlinehandelTreffertypenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Liste = JsonConverters.fromJson(json['Liste'],'List<onlinehandel_treffertypen>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Liste': JsonConverters.toJson(Liste,'List<onlinehandel_treffertypen>',context!)
};
getTypeName() => "OnlinehandelTreffertypenResponse";
TypeContext? context = _ctx;
}
class OnlinehandelTreffertypenRequest implements IConvertible
{
String? expression;
int? limit;
OnlinehandelTreffertypenRequest({this.expression,this.limit});
OnlinehandelTreffertypenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
expression = json['expression'];
limit = json['limit'];
return this;
}
Map<String, dynamic> toJson() => {
'expression': expression,
'limit': limit
};
getTypeName() => "OnlinehandelTreffertypenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'onlinehandel_treffertypen': TypeInfo(TypeOf.Class, create:() => onlinehandel_treffertypen()),
'OnlinehandelTreffertypenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenResponse()),
'List<onlinehandel_treffertypen>': TypeInfo(TypeOf.Class, create:() => <onlinehandel_treffertypen>[]),
'OnlinehandelTreffertypenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenRequest()),
});
Dart OnlinehandelTreffertypenRequest 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 /fibuscan/OnlinehandelTreffertypen HTTP/1.1
Host: ws4.fibudata.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
expression: String,
limit: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Liste:
[
{
id: 0,
guid: String,
mandant: 0,
del: 0,
parent_id: 0,
soll_parsen: 0,
bezeichnung: String,
_erstellt: 0001-01-01,
_aenderung: 0001-01-01,
suchfeld1: 0,
suchfeld1_text: String,
suchfeld2: 0,
suchfeld2_text: String,
PrimaryKey: 0
}
]
}