PortStatus class
Port Status.
Constructors
- PortStatus({String? error, required int port, required String protocol})
-
Default constructor.
const
-
PortStatus.fromJson(Map<
String, dynamic> json) -
Creates a PortStatus from JSON data.
factory
Properties
- error → String?
-
Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
CamelCase names
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- port → int
-
Port is the port number of the service port of which status is recorded here.
final
- protocol → String
-
Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP".
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a PortStatus instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited