/* Options: Date: 2026-09-01 04:00:28 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api-stage.smartfarmertech.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RolesSystemFunctionsAutoQueryLookup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Roles implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() String? name; Roles({this.id,this.tenantsId,this.name}); Roles.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name }; getTypeName() => "Roles"; TypeContext? context = _ctx; } class RolesSystemFunctions implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Roles)) int? rolesId; // @DataMember(Order=3) // @required() // @References(typeof(SystemFunctions)) int? systemFunctionsId; RolesSystemFunctions({this.id,this.rolesId,this.systemFunctionsId}); RolesSystemFunctions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; rolesId = json['rolesId']; systemFunctionsId = json['systemFunctionsId']; return this; } Map toJson() => { 'id': id, 'rolesId': rolesId, 'systemFunctionsId': systemFunctionsId }; getTypeName() => "RolesSystemFunctions"; TypeContext? context = _ctx; } class SystemFunctions implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() String? systemFunction; // @DataMember(Order=3) // @required() String? longDescription; SystemFunctions({this.id,this.systemFunction,this.longDescription}); SystemFunctions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; systemFunction = json['systemFunction']; longDescription = json['longDescription']; return this; } Map toJson() => { 'id': id, 'systemFunction': systemFunction, 'longDescription': longDescription }; getTypeName() => "SystemFunctions"; TypeContext? context = _ctx; } class Tenants implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Zones)) int? mainZonesId; // @DataMember(Order=3) bool? isPublic; Tenants({this.id,this.mainZonesId,this.isPublic}); Tenants.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; mainZonesId = json['mainZonesId']; isPublic = json['isPublic']; return this; } Map toJson() => { 'id': id, 'mainZonesId': mainZonesId, 'isPublic': isPublic }; getTypeName() => "Tenants"; TypeContext? context = _ctx; } class Zones implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=3) // @required() String? name; // @DataMember(Order=4) // @required() bool? isMain; // @DataMember(Order=5) // @required() bool? isDefault; Zones({this.id,this.tenantsId,this.name,this.isMain,this.isDefault}); Zones.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; isMain = json['isMain']; isDefault = json['isDefault']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name, 'isMain': isMain, 'isDefault': isDefault }; getTypeName() => "Zones"; TypeContext? context = _ctx; } class RolesSystemFunctionsAutoQueryLookup extends QueryDb implements IReturn>, IConvertible, IGet { RolesSystemFunctionsAutoQueryLookup(); RolesSystemFunctionsAutoQueryLookup.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "RolesSystemFunctionsAutoQueryLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api_stage.smartfarmertech.com', types: { 'Roles': TypeInfo(TypeOf.Class, create:() => Roles()), 'RolesSystemFunctions': TypeInfo(TypeOf.Class, create:() => RolesSystemFunctions()), 'SystemFunctions': TypeInfo(TypeOf.Class, create:() => SystemFunctions()), 'Tenants': TypeInfo(TypeOf.Class, create:() => Tenants()), 'Zones': TypeInfo(TypeOf.Class, create:() => Zones()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'RolesSystemFunctionsAutoQueryLookup': TypeInfo(TypeOf.Class, create:() => RolesSystemFunctionsAutoQueryLookup()), 'List': TypeInfo(TypeOf.Class, create:() => []), });