@override Object toJson() => { 'fingerprint': ?fingerprint, if (namedPorts.isNotDefault) 'namedPorts': [for (final i in namedPorts) i.toJson()], };