/* Options: Date: 2026-01-27 19:03:08 Version: 8.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://buildmax.org //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostConnections.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; abstract class IUser extends IIdTemplatesItem { ReadOnlyCollection? Groups; String? EmailAddress; bool? HasPassword; String? HomeFolder; String? Password; bool? SbcUser; } abstract class IUserGroup extends IIdTemplatesItem, IGroup { ReadOnlyCollection? Users; } enum PropertyType { Binary, Boolean, ConnectionString, Credential, Integer, Picklist, String, OAuth2, Certificate, } abstract class IConnectionPropertyDescription extends IInterface { String? Description; String? Name; String? PropertyId; PropertyType? PropertyType; } abstract class IConnectorConnection extends IStatus { String? ConnectorId; String? Description; String? Id; int? MaxConnections; String? Name; ReadOnlyCollection? Permissions; ReadOnlyCollection? PropertyDescriptions; IUser? SetupUser; } enum PermissionType { Group, User, } abstract class IConnectionPermission extends IInterface { bool? Allow; IConnectorConnection? Connection; PermissionType? Type; } abstract class IStatus extends IInterface { bool? Status; } abstract class IInterface { } abstract class IIdTemplatesItem extends IStatus { String? Id; String? Name; String? Description; ReadOnlyCollection? Templates; } abstract class IGroup extends IInterface { bool? UseGroupSettings; } class GetConnectionsResponse implements IConvertible { List? Connections; bool? IsAuthenticated; GetConnectionsResponse({this.Connections,this.IsAuthenticated}); GetConnectionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Connections = JsonConverters.fromJson(json['Connections'],'List',context!); IsAuthenticated = json['IsAuthenticated']; return this; } Map toJson() => { 'Connections': JsonConverters.toJson(Connections,'List',context!), 'IsAuthenticated': IsAuthenticated }; getTypeName() => "GetConnectionsResponse"; TypeContext? context = _ctx; } // @Route("/connections", "POST") class PostConnections implements IReturn, IConvertible, IPost { String? LoginCommand; String? LogoutCommand; String? Password; String? SaveCommand; String? UserName; PostConnections({this.LoginCommand,this.LogoutCommand,this.Password,this.SaveCommand,this.UserName}); PostConnections.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LoginCommand = json['LoginCommand']; LogoutCommand = json['LogoutCommand']; Password = json['Password']; SaveCommand = json['SaveCommand']; UserName = json['UserName']; return this; } Map toJson() => { 'LoginCommand': LoginCommand, 'LogoutCommand': LogoutCommand, 'Password': Password, 'SaveCommand': SaveCommand, 'UserName': UserName }; createResponse() => GetConnectionsResponse(); getResponseTypeName() => "GetConnectionsResponse"; getTypeName() => "PostConnections"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'buildmax.org', types: { 'IUser': TypeInfo(TypeOf.Interface), 'IUserGroup': TypeInfo(TypeOf.Interface), 'PropertyType': TypeInfo(TypeOf.Enum, enumValues:PropertyType.values), 'IConnectionPropertyDescription': TypeInfo(TypeOf.Interface), 'IConnectorConnection': TypeInfo(TypeOf.Interface), 'PermissionType': TypeInfo(TypeOf.Enum, enumValues:PermissionType.values), 'IConnectionPermission': TypeInfo(TypeOf.Interface), 'IStatus': TypeInfo(TypeOf.Interface), 'IInterface': TypeInfo(TypeOf.Interface), 'IIdTemplatesItem': TypeInfo(TypeOf.Interface), 'IGroup': TypeInfo(TypeOf.Interface), 'GetConnectionsResponse': TypeInfo(TypeOf.Class, create:() => GetConnectionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PostConnections': TypeInfo(TypeOf.Class, create:() => PostConnections()), });