encode method
Implementation
EncodedAsset encode() => EncodedAsset(
CodeAsset.type,
<String, Object>{
if (architecture != null) _architectureKey: architecture.toString(),
if (file != null) _fileKey: file!.toFilePath(),
_idKey: id,
_linkModeKey: linkMode.toJson(),
_osKey: os.toString(),
}..sortOnKey());