decode static method
- Unpacker u
Implementation
static MetadataEdit? decode(Unpacker u) {
switch (u.unpackListLength()) {
case 0: return null;
case 3: break;
default: throw DecodeError();
}
return MetadataEdit(
key: (u.unpackString())!,
oldValue: u.unpackString(),
newValue: u.unpackString(),
);
}