KeyArgs.fromArgs(MSchemaRef ref, this.args) : id = ref.mkey(args["id"] ?? illegalState("Missing id")), record = args["record"] as R?;