PortStatus class

Constructors

PortStatus({String? error, required int port, required String protocol})
The main constructor.
const
PortStatus.fromJson(Map<String, dynamic> json)
Creates a PortStatus from JSON data.

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<PortStatus>
Creates a list of PortStatus from JSON data.