Icu 12933 updates to target model to support aliasing (#2214)
* feat: 🎸 target aliases association API, form creation
This commit is contained in:
1 parent
ac5110d94a
commit
c8839d6db1
19 files changed
+197
-60
No files matched your search
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: MPL-2.0
|
||||
*/
|
||||
|
||||
import Transform from '@ember-data/serializer/transform';
|
||||
import { TrackedArray } from 'tracked-built-ins';
|
||||
|
||||
export default class ArrayTransform extends Transform {
|
||||
deserialize(serialized) {
|
||||
const arr = new TrackedArray(serialized || []);
|
||||
return arr;
|
||||
}
|
||||
|
||||
serialize(deserialized) {
|
||||
const arr = deserialized || [];
|
||||
return arr;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user