/* Options: Date: 2026-09-01 02:42:54 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: MediaAutoQueryLookup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 Questionnairs 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) String? description; // @DataMember(Order=5) bool? isDeleted; Questionnairs({this.id,this.tenantsId,this.name,this.description,this.isDeleted}); Questionnairs.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; name = json['name']; description = json['description']; isDeleted = json['isDeleted']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'name': name, 'description': description, 'isDeleted': isDeleted }; getTypeName() => "Questionnairs"; TypeContext? context = _ctx; } class Media implements IConvertible { // @DataMember(Order=1) // @required() int? id; // @DataMember(Order=2) // @required() // @References(typeof(Tenants)) int? tenantsId; // @DataMember(Order=4) // @required() String? entity; // @DataMember(Order=5) // @required() int? entityId; // @DataMember(Order=6) // @required() String? mediaType; // @DataMember(Order=7) String? mediaPath; // @DataMember(Order=8) // @References(typeof(Questionnairs)) int? questionnairsId; // @DataMember(Order=9) String? name; // @DataMember(Order=10) bool? free; // @DataMember(Order=11) String? publicAccessGuid; Media({this.id,this.tenantsId,this.entity,this.entityId,this.mediaType,this.mediaPath,this.questionnairsId,this.name,this.free,this.publicAccessGuid}); Media.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; tenantsId = json['tenantsId']; entity = json['entity']; entityId = json['entityId']; mediaType = json['mediaType']; mediaPath = json['mediaPath']; questionnairsId = json['questionnairsId']; name = json['name']; free = json['free']; publicAccessGuid = json['publicAccessGuid']; return this; } Map toJson() => { 'id': id, 'tenantsId': tenantsId, 'entity': entity, 'entityId': entityId, 'mediaType': mediaType, 'mediaPath': mediaPath, 'questionnairsId': questionnairsId, 'name': name, 'free': free, 'publicAccessGuid': publicAccessGuid }; getTypeName() => "Media"; TypeContext? context = _ctx; } class MediaAutoQueryLookup extends QueryDb implements IReturn>, IConvertible, IGet { MediaAutoQueryLookup(); MediaAutoQueryLookup.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "MediaAutoQueryLookup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api_stage.smartfarmertech.com', types: { 'Tenants': TypeInfo(TypeOf.Class, create:() => Tenants()), 'Zones': TypeInfo(TypeOf.Class, create:() => Zones()), 'Questionnairs': TypeInfo(TypeOf.Class, create:() => Questionnairs()), 'Media': TypeInfo(TypeOf.Class, create:() => Media()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'MediaAutoQueryLookup': TypeInfo(TypeOf.Class, create:() => MediaAutoQueryLookup()), 'List': TypeInfo(TypeOf.Class, create:() => []), });