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