Engine constructor
const
Engine({})
Implementation
const factory Engine({
/// Engine ID
required int id,
/// Engine creation date
required DateTime createdAt,
/// Is the engine initialized ?
required bool isInitialized,
/// Engine name
required String name,
/// Engine host
required String host,
/// Engine type
@JsonKey(fromJson: _engineTypeFromJson, toJson: _engineTypeToJson) required EngineType type,
/// Engine local endpoint ID
int? localEndpointId,
/// Engine endpoints
List<Endpoint>? endpoints,
/// Engine API key
String? apiKey,
}) = _Engine;