decode static method

MetadataEdit? decode(
  1. 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(),
  );
}