/* Options: Date: 2026-06-06 01:16:01 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://link.dc8.unico3.cloud //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Comune.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class FK { int? Id; FK({this.Id}); FK.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; return this; } Map toJson() => { 'Id': Id }; getTypeName() => "FK"; TypeContext? context = _ctx; } class FK_Zona extends FK implements IUniqueSigla, IUniqueDescrizione, IConvertible { String? Sigla; String? Descrizione; FK_Zona({this.Sigla,this.Descrizione}); FK_Zona.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Sigla = json['Sigla']; Descrizione = json['Descrizione']; return this; } Map toJson() => super.toJson()..addAll({ 'Sigla': Sigla, 'Descrizione': Descrizione }); getTypeName() => "FK_Zona"; TypeContext? context = _ctx; } class Optional implements IConvertible { String? Value; Optional({this.Value}); Optional.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Value = JsonConverters.fromJson(json['Value'],'Nullable<${runtimeGenericTypeDefs(this,[0]).join(",")}>',context!); return this; } Map toJson() => { 'Value': JsonConverters.toJson(Value,'String',context!) }; getTypeName() => "Optional<$T>"; TypeContext? context = _ctx; } class OptionalNullableDouble extends Optional implements IConvertible { OptionalNullableDouble(); OptionalNullableDouble.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "OptionalNullableDouble"; TypeContext? context = _ctx; } class OptionalNullableInteger extends Optional implements IConvertible { OptionalNullableInteger(); OptionalNullableInteger.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "OptionalNullableInteger"; TypeContext? context = _ctx; } abstract class IUniqueSigla extends IForeignKey { String? Sigla; } abstract class IForeignKey { int? Id; } abstract class IUniqueDescrizione extends IForeignKey { String? Descrizione; } // @Route("/tabelle/comuni/", "PUT") // @Route("/tabelle/comuni/{Id}", "PUT,GET") // @Route("/tabelle/comuni/codiceexport/{CodiceExport}", "PUT,GET") class Comune implements IReturn, IConvertible { String? CodiceExport; int? Id; String? Denominazione; String? CAP; String? Provincia; FK_Zona? Zona; bool? IsEsclusoDaListe; String? CodiceISTAT; OptionalNullableDouble? DurezzaTotaleAcqua; OptionalNullableInteger? TipoRCEE; Comune({this.CodiceExport,this.Id,this.Denominazione,this.CAP,this.Provincia,this.Zona,this.IsEsclusoDaListe,this.CodiceISTAT,this.DurezzaTotaleAcqua,this.TipoRCEE}); Comune.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CodiceExport = json['CodiceExport']; Id = json['Id']; Denominazione = json['Denominazione']; CAP = json['CAP']; Provincia = json['Provincia']; Zona = JsonConverters.fromJson(json['Zona'],'FK_Zona',context!); IsEsclusoDaListe = json['IsEsclusoDaListe']; CodiceISTAT = json['CodiceISTAT']; DurezzaTotaleAcqua = JsonConverters.fromJson(json['DurezzaTotaleAcqua'],'OptionalNullableDouble',context!); TipoRCEE = JsonConverters.fromJson(json['TipoRCEE'],'OptionalNullableInteger',context!); return this; } Map toJson() => { 'CodiceExport': CodiceExport, 'Id': Id, 'Denominazione': Denominazione, 'CAP': CAP, 'Provincia': Provincia, 'Zona': JsonConverters.toJson(Zona,'FK_Zona',context!), 'IsEsclusoDaListe': IsEsclusoDaListe, 'CodiceISTAT': CodiceISTAT, 'DurezzaTotaleAcqua': JsonConverters.toJson(DurezzaTotaleAcqua,'OptionalNullableDouble',context!), 'TipoRCEE': JsonConverters.toJson(TipoRCEE,'OptionalNullableInteger',context!) }; createResponse() => Comune(); getResponseTypeName() => "Comune"; getTypeName() => "Comune"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'link.dc8.unico3.cloud', types: { 'FK': TypeInfo(TypeOf.AbstractClass), 'FK_Zona': TypeInfo(TypeOf.Class, create:() => FK_Zona()), 'Optional': TypeInfo(TypeOf.GenericDef,create:() => Optional()), 'OptionalNullableDouble': TypeInfo(TypeOf.Class, create:() => OptionalNullableDouble()), 'OptionalNullableInteger': TypeInfo(TypeOf.Class, create:() => OptionalNullableInteger()), 'IUniqueSigla': TypeInfo(TypeOf.Interface), 'IForeignKey': TypeInfo(TypeOf.Interface), 'IUniqueDescrizione': TypeInfo(TypeOf.Interface), 'Comune': TypeInfo(TypeOf.Class, create:() => Comune()), });