Costmdls.deserialize constructor
Costmdls.deserialize(
- CborMapValue cbor
Deserializes a Costmdls instance from CBOR map value.
Implementation
factory Costmdls.deserialize(CborMapValue cbor) {
return Costmdls({
for (final entry
in cbor.cast<CborMapValue<CborObject, CborObject>>().value.entries)
Language.deserialize(entry.key): CostModel.deserialize(entry.value)
});
}