/* Options: Date: 2025-07-04 10:55:53 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://doapigw.baasbv.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddGroup.* //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; } // @Route("/dashboards/{ID}/groups/add", "POST") class AddGroup implements IReturn, IConvertible, IPost { String? ID; TileGroupDto? Group; AddGroup({this.ID,this.Group}); AddGroup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; Group = JsonConverters.fromJson(json['Group'],'TileGroupDto',context!); return this; } Map toJson() => { 'ID': ID, 'Group': JsonConverters.toJson(Group,'TileGroupDto',context!) }; createResponse() => TileGroupDto(); getResponseTypeName() => "TileGroupDto"; getTypeName() => "AddGroup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: { 'TileDto': TypeInfo(TypeOf.Class, create:() => TileDto()), 'TileGroupDto': TypeInfo(TypeOf.Class, create:() => TileGroupDto()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AddGroup': TypeInfo(TypeOf.Class, create:() => AddGroup()), });