factory RemotePortDetails.fromJson(Map<String, dynamic> json) { return RemotePortDetails( port: json['port'] as int?, portName: json['portName'] as String?, ); }