ConnectivityInfo.fromJson constructor

ConnectivityInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ConnectivityInfo.fromJson(Map<String, dynamic> json) {
  return ConnectivityInfo(
    hostAddress: json['HostAddress'] as String?,
    id: json['Id'] as String?,
    metadata: json['Metadata'] as String?,
    portNumber: json['PortNumber'] as int?,
  );
}