/* Options: Date: 2024-10-18 04:35:41 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetProjectDetails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ProjectDetails implements IConvertible { int? ID; String? GlobalID; String? Number; String? Name; String? Description1; String? Description2; bool? Active; int? CorrespondenceInternalCompanyID; String? CorrespondenceInternalCompanyName; String? CorrespondenceInternalCompanyGlobalID; String? Postalcode; String? City; int? CountryID; String? CountryGlobalID; String? CountryName; String? GeoLocation; String? AddressComplete; int? CategoryID; String? CategoryDescription; String? CategoryGlobalID; ProjectDetails({this.ID,this.GlobalID,this.Number,this.Name,this.Description1,this.Description2,this.Active,this.CorrespondenceInternalCompanyID,this.CorrespondenceInternalCompanyName,this.CorrespondenceInternalCompanyGlobalID,this.Postalcode,this.City,this.CountryID,this.CountryGlobalID,this.CountryName,this.GeoLocation,this.AddressComplete,this.CategoryID,this.CategoryDescription,this.CategoryGlobalID}); ProjectDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; GlobalID = json['GlobalID']; Number = json['Number']; Name = json['Name']; Description1 = json['Description1']; Description2 = json['Description2']; Active = json['Active']; CorrespondenceInternalCompanyID = json['CorrespondenceInternalCompanyID']; CorrespondenceInternalCompanyName = json['CorrespondenceInternalCompanyName']; CorrespondenceInternalCompanyGlobalID = json['CorrespondenceInternalCompanyGlobalID']; Postalcode = json['Postalcode']; City = json['City']; CountryID = json['CountryID']; CountryGlobalID = json['CountryGlobalID']; CountryName = json['CountryName']; GeoLocation = json['GeoLocation']; AddressComplete = json['AddressComplete']; CategoryID = json['CategoryID']; CategoryDescription = json['CategoryDescription']; CategoryGlobalID = json['CategoryGlobalID']; return this; } Map toJson() => { 'ID': ID, 'GlobalID': GlobalID, 'Number': Number, 'Name': Name, 'Description1': Description1, 'Description2': Description2, 'Active': Active, 'CorrespondenceInternalCompanyID': CorrespondenceInternalCompanyID, 'CorrespondenceInternalCompanyName': CorrespondenceInternalCompanyName, 'CorrespondenceInternalCompanyGlobalID': CorrespondenceInternalCompanyGlobalID, 'Postalcode': Postalcode, 'City': City, 'CountryID': CountryID, 'CountryGlobalID': CountryGlobalID, 'CountryName': CountryName, 'GeoLocation': GeoLocation, 'AddressComplete': AddressComplete, 'CategoryID': CategoryID, 'CategoryDescription': CategoryDescription, 'CategoryGlobalID': CategoryGlobalID }; getTypeName() => "ProjectDetails"; TypeContext? context = _ctx; } // @Route("/projects/{ID}", "GET") class GetProjectDetails implements IReturn, IConvertible { int? ID; GetProjectDetails({this.ID}); GetProjectDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; return this; } Map toJson() => { 'ID': ID }; createResponse() => ProjectDetails(); getResponseTypeName() => "ProjectDetails"; getTypeName() => "GetProjectDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'ProjectDetails': TypeInfo(TypeOf.Class, create:() => ProjectDetails()), 'GetProjectDetails': TypeInfo(TypeOf.Class, create:() => GetProjectDetails()), });