/* Options: Date: 2024-10-18 04:18:42 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: GetDashboard.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class TileDto implements IConvertible { String? ID; String? GroupID; int? Type; String? Name; int? Order; int? Cols; int? Rows; int? Style; String? Data; String? FontAwesomeIcon; String? FontAwesomeStyle; TileDto({this.ID,this.GroupID,this.Type,this.Name,this.Order,this.Cols,this.Rows,this.Style,this.Data,this.FontAwesomeIcon,this.FontAwesomeStyle}); TileDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; GroupID = json['GroupID']; Type = json['Type']; Name = json['Name']; Order = json['Order']; Cols = json['Cols']; Rows = json['Rows']; Style = json['Style']; Data = json['Data']; FontAwesomeIcon = json['FontAwesomeIcon']; FontAwesomeStyle = json['FontAwesomeStyle']; return this; } Map toJson() => { 'ID': ID, 'GroupID': GroupID, 'Type': Type, 'Name': Name, 'Order': Order, 'Cols': Cols, 'Rows': Rows, 'Style': Style, 'Data': Data, 'FontAwesomeIcon': FontAwesomeIcon, 'FontAwesomeStyle': FontAwesomeStyle }; getTypeName() => "TileDto"; TypeContext? context = _ctx; } class TileGroupDto implements IConvertible { String? ID; String? DashboardID; String? Name; int? Cols; int? Rows; int? Order; List? Tiles; TileGroupDto({this.ID,this.DashboardID,this.Name,this.Cols,this.Rows,this.Order,this.Tiles}); TileGroupDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; DashboardID = json['DashboardID']; Name = json['Name']; Cols = json['Cols']; Rows = json['Rows']; Order = json['Order']; Tiles = JsonConverters.fromJson(json['Tiles'],'List',context!); return this; } Map toJson() => { 'ID': ID, 'DashboardID': DashboardID, 'Name': Name, 'Cols': Cols, 'Rows': Rows, 'Order': Order, 'Tiles': JsonConverters.toJson(Tiles,'List',context!) }; getTypeName() => "TileGroupDto"; TypeContext? context = _ctx; } class DashboardDto implements IConvertible { String? ID; int? UserID; List? TileGroups; DashboardDto({this.ID,this.UserID,this.TileGroups}); DashboardDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; UserID = json['UserID']; TileGroups = JsonConverters.fromJson(json['TileGroups'],'List',context!); return this; } Map toJson() => { 'ID': ID, 'UserID': UserID, 'TileGroups': JsonConverters.toJson(TileGroups,'List',context!) }; getTypeName() => "DashboardDto"; TypeContext? context = _ctx; } // @Route("/dashboards/{ID}", "GET") class GetDashboard implements IReturn, IConvertible { String? ID; GetDashboard({this.ID}); GetDashboard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; return this; } Map toJson() => { 'ID': ID }; createResponse() => DashboardDto(); getResponseTypeName() => "DashboardDto"; getTypeName() => "GetDashboard"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'TileDto': TypeInfo(TypeOf.Class, create:() => TileDto()), 'TileGroupDto': TypeInfo(TypeOf.Class, create:() => TileGroupDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DashboardDto': TypeInfo(TypeOf.Class, create:() => DashboardDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetDashboard': TypeInfo(TypeOf.Class, create:() => GetDashboard()), });