ServerConfig class

Server configuration persisted by the host.

Constructors

ServerConfig({String? id, required String name, required String description, required TransportType transportType, required Map<String, dynamic> transportConfig, DateTime? createdAt, DateTime? lastConnectedAt, bool isFavorite = false, Map<String, dynamic>? metadata})
ServerConfig.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt → DateTime
final
description → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isFavorite → bool
final
lastConnectedAt → DateTime?
final
metadata → Map<String, dynamic>?
final
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transportConfig → Map<String, dynamic>
final
transportType → TransportType
final

Methods

copyWith({String? name, String? description, TransportType? transportType, Map<String, dynamic>? transportConfig, DateTime? lastConnectedAt, bool? isFavorite, Map<String, dynamic>? metadata}) → ServerConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited