import 'package:servicestack/servicestack.dart';
class UsersGroupsUsers implements IConvertible
{
// @DataMember(Order=1)
// @required()
int? id;
// @DataMember(Order=2)
// @required()
// @References(typeof(UsersGroups))
int? usersGroupsId;
// @DataMember(Order=3)
// @required()
// @References(typeof(AppUser))
int? appUserId;
UsersGroupsUsers({this.id,this.usersGroupsId,this.appUserId});
UsersGroupsUsers.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
usersGroupsId = json['usersGroupsId'];
appUserId = json['appUserId'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'usersGroupsId': usersGroupsId,
'appUserId': appUserId
};
getTypeName() => "UsersGroupsUsers";
TypeContext? context = _ctx;
}
class UsersGroupsUsersAutoQueryEdit extends UsersGroupsUsers implements IUpdateDb<UsersGroupsUsers>, IConvertible
{
UsersGroupsUsersAutoQueryEdit();
UsersGroupsUsersAutoQueryEdit.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "UsersGroupsUsersAutoQueryEdit";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api_stage.smartfarmertech.com', types: <String, TypeInfo> {
'UsersGroupsUsers': TypeInfo(TypeOf.Class, create:() => UsersGroupsUsers()),
'UsersGroupsUsersAutoQueryEdit': TypeInfo(TypeOf.Class, create:() => UsersGroupsUsersAutoQueryEdit()),
});
Dart UsersGroupsUsersAutoQueryEdit DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/UsersGroupsUsersAutoQueryEdit HTTP/1.1
Host: api-stage.smartfarmertech.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":0,"usersGroupsId":0,"appUserId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"id":0,"usersGroupsId":0,"appUserId":0}