```scala
val anyMap = anyList.map({
  val raw = deserializeFromBytes(p.getValue.toByteArray)
  val value = upcastAny(raw) match {
    case Some(v) => v
    case None => MMigrationCatchAll(raw)
  }
  (p.getKey -> value)
}).toMap

val mMap = mList.map({
  case (p: NrvProtobuf.MPair) => (p.getKey -> decodeMValue(p.getValue()))
}).toMap
anyMap ++ mMap
```